Constructor
new Client(socket)
Creates a Client from a given socket connection.
Parameters:
Name | Type | Description |
---|---|---|
socket |
type | description |
Methods
app() → {type}
app - description
Returns:
description
- Type
- type
getChannelName()
Returns:
The name of this client's channel, which is 'socket_<client.id>', where <client.id> is this client's id.
group() → {type}
group - description
Returns:
description
- Type
- type
period() → {type}
period - description
Returns:
description
- Type
- type
player() → {type}
player - description
Returns:
description
- Type
- type
shell() → {type}
Returns:
description
- Type
- type