xviz/docs/api-reference/server/overview-session.md
Timothy Wojtaszek 6a85f68a72 @xviz/server module (#453)
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
2019-05-23 16:34:18 -07:00

14 lines
561 B
Markdown

# XVIZSession Interface
An object satisfying this interface is returned by an
[XVIZHandler](/docs/api-reference/server/overview-handler.md) to manage the socket and messages. The
session is responsible for for routing the socket message through the
[XVIZServerMiddlewareStack](/docs/api-reference/server/xviz-server-middleware-stack.md).
### Interface Methods
##### onConnect()
This marks the beginning of a connect that will be handled by this session. The concrete class
implementing this function should be passed all necessary state in the constructor.