Почему информация не выводится?

server:

const app = express();
const server = http.createServer(app);
const expressWs = require('express-ws')(app);

app.ws('/signin', function(ws, req) {
  ws.emit('message', 'hihihihihihihihi');
})

client:

const signin = () => {
    const socket = io();

    socket.on('message', message => {
        console.log(message);
    })
}

signin();


Ответы (0 шт):