ws.onopen = function (event) {
var messageListen = {
type: 'LISTEN',
data: {
topics: ['channel-points-channel-v1.<userID>'],
auth_token: '<token>',
}
};
ws.send(JSON.stringify(messageListen));
ws.onerror = function (error) {
console.log('ERR: ' + JSON.stringify(error) + '\n')
};
};
Above is my code for example, would I have to do multiple ws.send for multiple users? Or is there a way to combine all the users into a single ws.send ?