add tokio echo server for mash

This commit is contained in:
ntr
2018-08-29 19:56:56 +10:00
parent 475b0c02c9
commit e4b3da692d
4 changed files with 132 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
const WebSocket = require('ws');
const ws = new WebSocket('ws://cryps.gg:40080');
ws.on('open', function open() {
ws.send('something else');
});
ws.on('message', function incoming(data) {
console.log(data);
});