Expand all

ve.dm.TransportServer

Constructor

new ve.dm.TransportServer(protocolServer) #

Transport server for Socket IO transport

Parameters:

Name Type Description
protocolServer ve.dm.ProtocolServer

The protocol server

Source:
Transport server for Socket IO transport

Methods

onConnection(getRoom, socket) → {Promise} #

Generic connection handler

This just creates a namespace handler for the docName, if one does not already exist

Parameters:

Name Type Description
getRoom function

One-argument function taking docName, returning the corresponding room

socket Object

The io socket

Source:

Returns:

Type
Promise

Generic connection handler

This just creates a namespace handler for the docName, if one does not already exist