Skip to content

Commit 58d4c63

Browse files
committed
Fix socket io.
1 parent 3231f03 commit 58d4c63

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

coder-base/server.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,9 @@ if (config.ssl.enable)
405405
}
406406
else
407407
{
408-
http.createServer(coderapp).listen(config.httpListenPort, config.listenIP);
408+
var server = http.createServer(coderapp);
409+
server.listen(config.httpListenPort, config.listenIP);
410+
initSocketIO(server);
409411
}
410412

411413
pingStatusServer();

0 commit comments

Comments
 (0)