I need to get info from the 'newitems_cs' channel, basically everything (shaded is not needed).
Server: wss: //wsn.dota2.net/wsn/
My code (it does not work):
const ws = new WebSocket('wss://wsn.dota2.net/wsn/'); ws.onopen = (data)=>{ ws.send('newitems_cs'); ws.on('newitems_cs', (data)=>{ console.log(data); }) } 