what is the type of socket
ORESoftware opened this issue · comments
Alexander Mills commented
I spy an unnecessary use of any
this.io.on('connect', (socket: any) => {
console.log('Connected client on port %s.', this.port);
socket.on('message', (m: Message) => {
console.log('[server](message): %s', JSON.stringify(m));
this.io.emit('message', m);
});
socket.on('disconnect', () => {
console.log('Client disconnected');
});
what is socket?? what is the type? I can't find that info.. if I find out, I would like submit a PR for this lib if that's ok
Alexander Mills commented
I think the type is:
import {Socket} from "socket.io";