Is the client subscribed to a topic?
method
ServerWebSocket.isSubscribed
@param topic
The topic name.
ws.subscribe("chat");
console.log(ws.isSubscribed("chat")); // true
method
The topic name.
ws.subscribe("chat");
console.log(ws.isSubscribed("chat")); // true