mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-01 19:56:38 +00:00
WebInterface reference implementation
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
const WebSocket = require('ws');
|
||||
const ws = new WebSocket('ws://localhost:9080');
|
||||
|
||||
ws.on('open', function open() {
|
||||
ws.send(JSON.stringify({authorization: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6IktTcHJpdGUxIiwiZXhwIjoxNDg0NzIzNDQxLCJpYXQiOjE0ODQxMTg2NDF9.Lmwm572yMWIu1DUrfer8JVvl1DGEkdnMsMFp5WDzp_A', id: '1', method: 'EQW::IsLocked', params: []}));
|
||||
});
|
||||
|
||||
ws.on('message', function(data, flags) {
|
||||
console.log(data);
|
||||
});
|
||||
Reference in New Issue
Block a user