Class: WebSocketServer

WebSocketServer()

new WebSocketServer()

Source:

Methods

(static) listen(server, createClient) → {undefined}

Start to listen client connections.

Parameters:
Name Type Description
server http.server

HTTP server

createClient function

A function to create clientninstance

Source:
Returns:
Type
undefined

postMessage(message) → {undefined}

Post message.

Parameters:
Name Type Description
message object

a message object.

Source:
Returns:
Type
undefined