Constructor
new Client(url)
Parameters:
| Name | Type | Description |
|---|---|---|
url |
string | Connect to a socketry server (ids start with a '0') |
Methods
end()
End the client connection
joinRoom(room)
Join a room
Parameters:
| Name | Type | Description |
|---|---|---|
room |
string | Name of the room you would like to join |