I'm using socket.io
in total.js and want to use the io
object in a module.
how can i access the io
object in a module? (pass the object or set the global framework
object?)
the initialization code:
require("total.js");
ON("load", function() {
let io = require("socket.io")(this.server);
});
F.http("debug");