Network node
WebSocket Server
A WebSocket server in Grafit: web pages, phones and other programs connect to it. Wire Connection into WebSocket Receive and WebSocket Send nodes; every client has an id (c1, c2 …) for replies. Listens on this Mac only until you allow other devices in the Settings tab, where browser origins and a token are set too. It is also the local-network hub for Sync Trigger and Sync Time: other Grafits find it in the WebSocket Client’s network menu, and Sync nodes on this Mac cable to its Connection directly.
Inputs
| Port | Type | Default |
|---|---|---|
| PortThe port clients connect to, 1–65535: ws://this-mac:Port/. Two servers cannot share a port — the second one says so in Error. Changing it restarts the server. | int | 8765 |
| Max ClientsHow many clients may be connected at once, 1–1024. One more is refused (and logged); the others are not affected. | int | 16 |
| EnableOff closes every client connection cleanly and stops listening. | bool | true |
Outputs
| Port | Type |
|---|---|
| Connection | structure |
| Listening | bool |
| Clients | int |
| Client List | structure |
| Address | string |
| Error | string |
Open WebSocket Server in the interactive catalog →
WebSocket Server is one of 381 nodes in Grafit Pro.
Free download. Every feature for 7 days, no card. Then €99.99 once — or keep playing your projects as a Player.