wss¶
Object: jstp.wss¶
jstp.wss.createServer(options[, listener])¶
options<Object>|<Application[]>applications<Application[]>|MapApplications array or index obtained fromjstp.createAppsIndex().authPolicy<AuthPolicy>|<Function>If the function is provided, it is expected to have the same signature asAuthPolicy.authenticate().sessionStorageProvider<SessionStorageProvider>If provided, this is used to store sessions for applications that do not have its own storage provider. Defaults to usingSimpleSessionStorageProviderwith its default settings.heartbeatInterval<number>Omitting this option disables heartbeat.clientExpirationTime<number>Time it takes for client's connection and corresponding session cache, stored in memory after the connection is closed, to expire. Defaults to3600000(1 hour).
listener<Function>Automatically set as a listener for the'connect'event.
For more details see jstp.ws.createServer().