add newWebsocket variant that lacks the key
This commit is contained in:
parent
fc9f9312ef
commit
2936245d39
2 changed files with 4 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# Package
|
||||
|
||||
version = "1.0.0"
|
||||
version = "1.1.0"
|
||||
author = "Andreas Rumpf"
|
||||
description = "Karax is a framework for developing single page applications in Nim."
|
||||
license = "MIT"
|
||||
|
|
|
|||
|
|
@ -11,4 +11,7 @@ type
|
|||
proc newWebSocket*(url, key: cstring): WebSocket
|
||||
{.importcpp: "new WebSocket(@)".}
|
||||
|
||||
proc newWebSocket*(url: cstring): WebSocket
|
||||
{.importcpp: "new WebSocket(@)".}
|
||||
|
||||
proc send*(w: WebSocket; data: cstring) {.importcpp.}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue