mirror of
https://github.com/aurora-opensource/xviz.git
synced 2026-01-18 14:07:46 +00:00
Proper module to replace our adhoc server script with a structured middleware-based implementation. Key documents are: - RFC ./dev-docs/004-server-module-rfc.md - User Docs ./docs/api-reference/server - Module Readme ./modules/server/README.md
649 B
649 B
XVIZHandler Interface
An XVIZHandler will be called to provide an XVIZSession to handle the request made to the XVIZServer.
Interface
async newSession(socket, request)
Using the socket and request a handler must decide if this connection can be handled.
Parameters:
socket(Object) - The socket from the serverrequest(Object) - The request object from the server
Returns: (XVIZSession|null) - A session to handle this connection or null if the request cannot be handled.