You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 30, 2019. It is now read-only.
Oh, I just realized that I didn't upload these changes yet.
The currently released module (1.4.1) requires app.server.httpServer, notapp.server.http.
Sorry for the misleading information.
As of 1.4.2 which was released today the correct way to access the server object is app.server.http and has also been included in the documentation now.
How do I get the instance of the http server to init socket.io?
I guessed this:
const server = app.run();
const io = require('socket.io')(server);
io.on('connection', (socket) => {
console.log('a user connected');
socket.on('disconnect', () => {
console.log('user disconnected');
});
});
The text was updated successfully, but these errors were encountered: