add newWebsocket variant that lacks the key

This commit is contained in:
Araq 2019-01-31 16:16:37 +01:00
commit 2936245d39
2 changed files with 4 additions and 1 deletions

View file

@ -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"

View file

@ -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.}