added websockets' onopen event handler
This commit is contained in:
parent
7425568122
commit
b8c9ff45fe
1 changed files with 1 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ type
|
|||
|
||||
WebSocket* {.importc.} = ref object
|
||||
onmessage*: proc (e: MessageEvent)
|
||||
onopen*: proc (e: MessageEvent)
|
||||
|
||||
proc newWebSocket*(url, key: cstring): WebSocket
|
||||
{.importcpp: "new WebSocket(@)".}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue