Search the reference...
/
method
Subscribes a client to the topic.
The topic name.
ws.subscribe("chat");