Skip to content

Commit

Permalink
imporve py
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethosa committed Jan 13, 2024
1 parent 07577d2 commit 33468fb
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions src/happyx/bindings/python_types.nim
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,20 @@ type
wssHandshakeError,
wssMismatchProtocol,
wssError
WebSocket* = ref object of PyNimObjectExperimental
id*: uint64
ws*:
when enableHttpBeast:
websocketx.WebSocket
else:
websocket.AsyncWebSocket
data*: string
state*: WebSocketState
when enableHttpBeast:
type
WebSocket* = ref object of PyNimObjectExperimental
id*: uint64
ws*: websocket.AsyncWebSocket
data*: string
state*: WebSocketState
else:
type
WebSocket* = ref object of PyNimObjectExperimental
id*: uint64
ws*: websocketx.WebSocket
data*: string
state*: WebSocketState


var
Expand Down

0 comments on commit 33468fb

Please sign in to comment.