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 61bf93a commit 07577d2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/happyx/bindings/python_types.nim
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,11 @@ type
wssError
WebSocket* = ref object of PyNimObjectExperimental
id*: uint64
ws*: websocketx.WebSocket
ws*:
when enableHttpBeast:
websocketx.WebSocket
else:
websocket.AsyncWebSocket
data*: string
state*: WebSocketState

Expand Down

0 comments on commit 07577d2

Please sign in to comment.