Websocket.js is an embeddable C/C++ engine that allows to write plain TCP, Web, or Websocket services entirely in Javascript. It is specifically suited embedded environments with constrained resources, like smart devices, telemetry probes, etс. Javascript interface makes development extremely fast and effortless. Websocket.js features include:
- Tiny footpint of V7 Embedded Javascript Engine and Net Skeleton makes websocket.js fit the most constrained environments
- Familiar Javascript interface makes development fast and available to a large group of engineers who already know Javascript, one of the most popular languages on the planet
- Simple and powerful V7 C/C++ API allows to interface with any other technology and delegate mission-critical tasks to the optimized compiled code
- Reference echo server applications let anybody with Javascript experience start developing in minutes
- Industry-standard security: native SSL/TLS support
- Websocket.js is cross-platform and works on Windows, MacOS, iOS, UNIX/Linux, Android, QNX, eCos and many other platforms
On MacOS or UNIX/Linux, start terminal and execute the following commands:
$ git clone https://github.com/cesanta/websocket.js.git
$ cd websocket.js
$ make CFLAGS_EXTRA="-DNS_ENABLE_SSL -lssl"
$ ./engine
That starts the websocket echo server in your terminal.
To test it, open echo.html
page in your browser, enter ws://localhost:8000
in the location field and
press "Connect".
This software is released under commercial and GNU GPL v.2 open source licenses. The GPLv2 open source License does not generally permit incorporating this software into non-open source programs. For those customers who do not wish to comply with the GPLv2 open source license requirements, Cesanta Software offers a full, royalty-free commercial license and professional support without any of the GPL restrictions.