diff --git a/karax.nimble b/karax.nimble index 87ce20f..7da4f93 100644 --- a/karax.nimble +++ b/karax.nimble @@ -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" diff --git a/karax/jwebsockets.nim b/karax/jwebsockets.nim index 2b1412e..7c94da7 100644 --- a/karax/jwebsockets.nim +++ b/karax/jwebsockets.nim @@ -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.}