@needle-tools/needle-tiny-networking-ws

1.4.0 • Public • Published

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 on yourserver/socket). If not provided will fallback to /
  • maxUsers: number - max concurrent users on a server

Contact

needle — tools for unity@NeedleTools@marcel_wiessler@hybridherbst

Package Sidebar

Install

npm i @needle-tools/needle-tiny-networking-ws

Weekly Downloads

165

Version

1.4.0

License

MIT

Unpacked Size

51.2 kB

Total Files

25

Last publish

Collaborators

  • marwi123
  • herbst