Solved just marked out ProtectHome:yes to #ProtectHome:yes
Solved Changing socket.io heartbeat interval and timeout
-
How can I change socket.io's "heartbeat interval" and "heartbeat timeout"?
Or how can I manually send a heartbeat pack?
I can make a plugin, but no idea how to do it right now. -
: (
Solved in a dirty way.
I changed./src/socket.io/index.js
about line 60,addedpingInterval
andpingTimeout
.
I was expecting to change this by a plugin, not edit Nodebb's code directly.(seems not possible) -
@Genteure I think you can do it with a plugin. In the init hook, you should be able to
var io = require.main.require('./src/socket.io').server; io.set('option', 'value');
-
@PitaJ WOW thanks. Didn't think about that.I'm new with node.js.