- Preparing search index...
- The search index is not available
Chess Bots
Function websocketHandler
- websocketHandler(ws: WebSocket, req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, next: NextFunction): void
-
Parameters
-
ws: WebSocket
-
req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>
-
next: NextFunction
Returns void
An endpoint used to establish a websocket connection with the server.
The websocket is used to stream moves to and from the client.