Skip to main content

All Questions

0 votes
1 answer
551 views

connect by socket.io for react native and sails

I am trying to connect mobile app with react native and nodeJS running with sails I have test the connection with reactJS and the socket work fine on the browser but with react native it give me this ...
mohamed nageh's user avatar
-1 votes
1 answer
106 views

Send messages to client with Nodejs

I have a server side application, which implements Rest API for client Http requests. I have a request for deleting MongoDB docs for many schemas. I want to send to the client realtime object status ...
barakp's user avatar
  • 1
0 votes
1 answer
449 views

error in socket io request by angular 8 and sailsJs

Im new at socket.io and in Angular I made a socket request forward to sailsJS (backend) but after requesting i get the following error: Sails responded with: Error: The 2-ary usage of res.json() is ...
Me Sa's user avatar
  • 1,104
0 votes
0 answers
335 views

SailsJs Sockets (Node) gives 404 Error during WebSocket handshake, when used with ssl configuration with nginx Proxy

SailsJs Sockets (Node) gives 404 Error during WebSocket handshake, when used with ssl configuration with nginx as Reverse Proxy. But when I use remove just ssl configuration from my Nginx it is ...
Deepak Pandey's user avatar
1 vote
0 answers
32 views

socketio + sails: does not receive response in socket frame

I created a socket server with sails. I use socket.io.js and sails.io.js to test, but the results are not the same I couldn't find the reason why. I want to fix socket.io to work the same as sails.io, ...
Giang ngo xuan's user avatar
1 vote
0 answers
395 views

Websocket request sometimes doesn't work after connection establishment

I have a Node.js script which is supposed to regularly access a SailsJS application via a socket connection. Client and server run on physically different machines on different networks. The SailsJS ...
cis's user avatar
  • 1,391
2 votes
1 answer
1k views

How to unsubscribe a socket from a room when socket disconnected from the server

If socket is disconnected from the server, Will all the subscription of that socket will be removed from the chat-room by default(by sails) or we have to remove it manually(by code)
kadhiresan k's user avatar
0 votes
1 answer
100 views

Sails.js - Update variable from socket data

I'm trying to update my view when I receive new data via a websocket using Sails.js. in my controller welcome.js I have: module.exports = { fn: async function (inputs, exits) { var ...
Cellydy's user avatar
  • 1,339
0 votes
1 answer
856 views

Saving blobs as a single webm file

I'm recording the users screen via webrtc, and then posting video blobs every x seconds using MediaStreamRecorder. On the server side I have an action set up in sails which saves the blob as a webm ...
Mark Hill's user avatar
  • 161
11 votes
1 answer
759 views

Use express-validator as a middleware with websockets

I used Sails.js + Passport.js authentication through websockets to bind passport.js methods for requests through websockets (using sockets.io) , but how should i add express-validator methods to ...
kobe24's user avatar
  • 189
0 votes
1 answer
558 views

MaxListenersExceededWarning in sails js

I am using sails js but encountered with this error MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 connection listeners added. Use emitter.setMaxListeners() to ...
The Sara's user avatar
1 vote
0 answers
492 views

Sails.js with Socket.io: Blasting events works fine, but broadcasting doesn't

In my frontend I'm using the sails.io.js wrapper. I'm trying to connect to my backend and listen for notifications. This works fine when I'm using blast to send out to all connected sockets, but ...
Philip Feldmann's user avatar
0 votes
1 answer
351 views

cors issue in nginx, sails and socket Io

I am having a Sails Application where I use socket IO for notifying the client on some events. I am having nginx as proxy server so that whenever a request is having /node/anything it redirects to ...
Saroj's user avatar
  • 1,571
0 votes
1 answer
1k views

Duplicated event handlers when using websockets to track a users online status?

I would like to use websockets to track the time when a user was last seen, along with their current online status (if they are currently authenticated and making use of the application). I have the ...
Craig van Tonder's user avatar
2 votes
2 answers
2k views

Problems subscribing to a room (socket) with Socket.IO-Client-Swift and Swift, Sails.js on the Server

On Swift, I use socket.on("test") {data, ack in print(data) } In order to subscribe to a room (socket) on my Sails.js API. When I broadcast a message from the server, with sails.sockets....
Mike Gazzaruso's user avatar

15 30 50 per page
1
2 3 4 5
8