GateOne icon indicating copy to clipboard operation
GateOne copied to clipboard

authorization websocket

Open luomclc opened this issue 7 years ago • 0 comments

Hi Liftof,

I have the following code: const ws = new WebSocket(wss://localhost/ws, { rejectUnauthorized: false, origin: 'https://localhost' });

ws.on('open', function open () {

ws.send(JSON.stringify({'c':'pwd\n'}));

});

error: [E 181028 14:45:26 authorization:114] {"ip_address": "127.0.0.1"} ANONYMOUS -> char_handler failed requirement: policies: terminal

plesase help

Thanks,

luomclc avatar Oct 28 '18 08:10 luomclc