Angular 8 using sails js websokcet (sokcet.io)
I want to connect angular 8 in front to sails js in backend through websocket. but my code doesn't work. may someone help on way in backend i just did following: in controller: /** * SocketController * * @description :: Server-side actions for handling incoming requests. * @help :: See https://sailsjs.com/docs/concepts/actions */ module.exports = { subscribe: function(req, res) { if( ! req.isSocket) { return res.badRequest(); } console.log('here is socket'); // sails.sockets.join(req.socket, 'feed'); // var roomName = req.param('roomName'); var roomName = 'feed'; sails.sockets.join(req,