Open happilymarrieddad opened 8 years ago
same..
There is a minor change needed for version 4+ of SocketCluster. I haven't been able to make this change yet but the middleware passes in just a request object and a callback now, whereas previously it sent in several different values. Now those same values are in the request object instead. I can offer more assistance if you wish to fix the problem yourself before I can get to it.
Hi @robborden I am stuck with the same error. Could you please assist me on how to fix it.
Hi @robborden , never mind, I modified the sc-presence.js from lines 113 - 116 as follows and it is working now :)
worker.scServer.addMiddleware(worker.scServer.MIDDLEWARE_SUBSCRIBE, function (req, next) { module.exports.subscribeUser(req.socket, req.channel, function (err) { if (err) console.log(err); }); next(); });
@nagamanojv Hey man are you going to make a pull request?
@happilymarrieddad I don't think I can as I don't have permission to create a branch in this repository
@nagamanojv fork the repo, make your changes, push up to your github account, login to github, go to the pull requests on your account and your repo, click on the "Make Pull Request" and then just select this repo as the master and yours and the one to pull from.
Hi @nagamanojv
If you submit a PR I will make sure this fix is merged. This issue is the result of a change they made between v2 and v4. Thank you for fixing!
I'm getting a weird error on startup. Thanks!