It seems require('socket.io').reqFromSocket(socket) doesn't returns a valid req for AuthController.doLogin.... i want to authenticate via websocket but maybe i will have to do it the old POST way, am i correct?
To anyone searching the same thing, I resolved the problem using the custom write-api hooks, I wasn't aware of:
that gives you data, I used it in this way:
Obviously you should have nodebb-plugin-write-api installed.
@Tomas-Pavlacky seems that we will have to submit a PR to update those dependencies. Did you managed to make it work?
@julian It means that I can test my plugin with nodebb actually firing hooks for it.
@inhuman We could build one out for you, possibly Reach out to us at firstname.lastname@example.org
Has this been started yet?
I am interested in helping with this, as I'm a XenForo convert.