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

Popular posts from this blog

javascript - Create a stacked percentage column -

Optimising Firebase database by automatically overwriting data -

javascript - Angular UI-Grid customTemplate directive causing rows to load slowly/? -