mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-16 16:14:43 -04:00
Updated realtime.js, use socket.io built-in broadcast function instead self iterate to avoid extra issues
This commit is contained in:
parent
e6cac820ae
commit
950d978fe8
2 changed files with 26 additions and 0 deletions
3
app.js
3
app.js
|
@ -65,6 +65,9 @@ mongoose.connect(process.env.MONGOLAB_URI || config.mongodbstring);
|
|||
var db = require("./lib/db.js");
|
||||
var realtime = require("./lib/realtime.js");
|
||||
|
||||
//assign socket io to realtime
|
||||
realtime.io = io;
|
||||
|
||||
//methodOverride
|
||||
app.use(methodOverride('_method'));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue