sono.land

changechannel

changechannel

Changing channels

Allows users to access different channels in the channels list with a click of a button. Once in a different channel, the user is then allowed to see the messages that are currently being communicated in that specific channel only. This grants users to only see messages that are specific to the channels.

Client Side

1// example below demonstrates a client moving to the 'secret' channel
2document.getElementById('secretChannel').addEventListener('click', () => {
3 sono.changeChannel('Secret');
4});
Edit this page on GitHub