websocket - Can I use http request routs of sails.js in web-socket -
sails.js support both web-socket , http-request api call. have route rest api like
get /api/v1/usercontroller/fetch
but can't call route socket, there way bind route in socket.io , call route both web-socket , http-request?
i found android library here: http://joshuamarquez.me/2016/06/12/how-to-use-sails.io.js-in-java/
this library wrapper around socket.io , connect sails project in both socket , http way. don't know why don't mention library in sails documentation :|
Comments
Post a Comment