jswebsockets
Websockets wrapper for nim js backend.
Summary
| Latest Version | Unknown |
|---|---|
| License | MIT |
| CI Status | Passing |
| Downloads | 0 |
| Last Indexed | 2026-07-22 05:28 |
Tags
Installation
nimble install jswebsockets
choosenim install jswebsockets
git clone https://github.com/stisa/jswebsockets
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| jswebsockets | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Source
| Repository | https://github.com/stisa/jswebsockets |
|---|---|
| Homepage | https://stisa.space/jswebsockets/ |
| Registry Source | nimble_official |
README
JsWebsockets
Beginning of a wrapper for websockets, for the javascript backend of nim
import jswebsockets
var
socket = newWebSocket("ws://echo.websocket.org/")
socket.onOpen = proc (e:Event) =
echo("sent: test")
socket.send("test")
socket.onMessage = proc (e:MessageEvent) =
echo("received: ",e.data)
socket.close(StatusCode(1000),"received msg")
socket.onClose = proc (e:CloseEvent) =
echo("closing: ",e.reason)