From 2936245d399eecfca81b0cf714e5113cba0724bc Mon Sep 17 00:00:00 2001 From: Araq Date: Thu, 31 Jan 2019 16:16:37 +0100 Subject: [PATCH] add newWebsocket variant that lacks the key --- karax.nimble | 2 +- karax/jwebsockets.nim | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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.}