-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Description
I wanted to use socket.io in my project, so I added this to the express server.js file:
/**
* Initialize socket.io
*/
var http = require('http').Server(app);
var io = require('socket.io')(http);
io.on('connection', function(socket){
console.log('neue Socket-Connection');
socket.on('event', function(data){});
socket.on('disconnect', function(){});
});
Now when creating a production build, the socket communication between client and server works nicely as expected.
But: Unfortunately it is not working when running the Webpack dev server :(
Has anyone an idea how that could be fixed?
Metadata
Metadata
Assignees
Labels
No labels