@needle-tools/needle-tiny-networking-ws
v1.4.0
Published
Websocket networking backend functionality for Needle Engine
Downloads
427
Readme
This is the networking package for Needle Engine
Integrate with fastify:
import networking from "@needle-tools/needle-tiny-networking-ws";
networking.startServerFastify(fastifyApp, { endpoint: "/socket" });
Integrate with express:
import networking from "@needle-tools/needle-tiny-networking-ws";
networking.startServerExpress(expressApp, { endpoint: "/socket" });
Options
endpoint : string
- optional relative server endpoint (e.g./socket
to start the websocket endpoint onyourserver/socket
). If not provided will fallback to/
maxUsers: number
- max concurrent users on a server
Contact
needle — tools for unity • @NeedleTools • @marcel_wiessler • @hybridherbst