Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sails.js with native WebSockets

I want to make public WebSocket API with sails.js. So I'd like to use native WebSockets instead of the built-in socket.io but with Sails.js controllers and models. Is it possible? Maybe I can implement custom transport or something else. Thanks for any help.

like image 901
kmakarychev Avatar asked Jul 04 '14 05:07

kmakarychev


1 Answers

I implemented WebSockets support for Sails.js as a custom hook: https://github.com/provectus/sails-userhooks-ws

like image 58
kmakarychev Avatar answered Oct 06 '22 16:10

kmakarychev