wormhole/lib/Socket.js
2021-01-26 12:04:53 +02:00

12 lines
No EOL
265 B
JavaScript

class Socket {
constructor({ initialState='CONNECTING', socket }) {
this._state = initialState;
this._socket = socket;
this._socket.on('data', (e) => {
console.log(e.toString());
});
}
}
module.exports = Socket;