wormhole/lib/Socket.js

12 lines
265 B
JavaScript
Raw Normal View History

2021-01-26 12:04:53 +02:00
class Socket {
constructor({ initialState='CONNECTING', socket }) {
this._state = initialState;
this._socket = socket;
this._socket.on('data', (e) => {
console.log(e.toString());
});
}
}
module.exports = Socket;