Constructs a WebSocketNetworkServer.
The WebSocketServer (package ws) to run on top of.
ServerDocStore, for persisting document states. Default: InMemoryDocStore, for demonstration purposes.
Callback that returns whether a given client (ws
)
is allowed to read and write docID
.
Default: Always true (all docs are public), for demonstration purposes.
How often to send WebSocket pings, in ms. Set to 0 to disable pings.
Generated using TypeDoc
Server for @collabs/ws-client's WebSocketNetwork.
You can start the server by calling the constructor in a Node.js program or by using the
collabs-ws-server
command.This server is only minimally configurable; for advanced uses, consider copying and modifying its source code directly.
However, you can configure:
docStore
argument).authenticate
argument)."upgrade"
event; see https://www.npmjs.com/package/ws#client-authentication .