Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/archergu/node-red-contrib-socketio-server
node-red-contrib-socketio-server
https://github.com/archergu/node-red-contrib-socketio-server
namespace node-red node-red-contrib room socket socket-io websocket
Last synced: 3 months ago
JSON representation
node-red-contrib-socketio-server
- Host: GitHub
- URL: https://github.com/archergu/node-red-contrib-socketio-server
- Owner: ArcherGu
- License: mit
- Created: 2021-03-14T00:36:31.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-09-02T07:39:57.000Z (over 3 years ago)
- Last Synced: 2024-10-09T18:05:10.655Z (3 months ago)
- Topics: namespace, node-red, node-red-contrib, room, socket, socket-io, websocket
- Language: HTML
- Homepage: https://archergu.github.io/node-red-contrib-socketio-server/
- Size: 425 KB
- Stars: 7
- Watchers: 1
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-red-contrib-socketio-server
A Node-Red node for [Socket.IO](https://socket.io/docs/v3) server.
## Nodes
- `socket.io-instance`: create a Socket.IO server instance.
- `socket.io-on`: listen for specific event.
- `socket.io-emit`: send data for a specific event to clients.
- `socket.io-join-room`: join a room.
- `socket.io-leave-room`: leave a room.
- `socket.io-middleware-start` & `socket.io-middleware-end`: for middleware.Note: Do not print any `msg` that contains the `msg.socket`. Otherwise it will cause "RangeError: Maximum call stack size exceeded" error. see [issues #1](https://github.com/ArcherGu/node-red-contrib-socketio-server/issues/1).
## Tutorial
You can find tutorial [here](https://github.com/ArcherGu/node-red-contrib-socketio-server/tree/main/tutorial).
## License
The code in this project is licensed under [MIT license](https://github.com/ArcherGu/node-red-contrib-socketio-server/blob/main/LICENSE).