Client

server. Client

Server side representation of a client.

Constructor

new Client(clientType, socket)

Source:
Parameters:
Name Type Description
clientType String

Type of the client

socket server.Socket

Socket connection with the client

Members

id :Number

Source:

Session id (incremeted positive number). The counter is reset when the server restarts.

Type:
  • Number

socket :server.Socket

Source:

Socket connection with the remote client.Client.

Type:

type :String

Source:
See:

Client type, as specified when initializing the client side client.Client.

Type:
  • String

uuid :String

Source:

Unique session id (uuidv4).

Type:
  • String