authorization websocket
luomclc opened this issue · 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,