Added code to support channel === -1 to server and removed it from the js client