92
questions
0
votes
0
answers
42
views
Can not connect to sails socket
I am trying to continously broadcast/publish/emit/send messages to a socket room using Sails on my backend, and on another project continously recieve these messages.
Expected behaviour : every time ...
0
votes
0
answers
22
views
How to achieve non resourceful socket communication with Sails js?
I am trying to continously broadcast/publish/emit/send messages to a socket room using Sails on my backend, and on another project continously recieve these messages.
Expected behaviour : every time ...
0
votes
0
answers
62
views
Sails: io.socket.get requests are throwing 401 Unauthorized
I recently upgraded the version of Sails from version 1.5.2 to 1.5.7 for Vulnerability Fix.
This is my first time working with sails and node. So, there are lots of gaps in my understanding.
After the ...
-2
votes
1
answer
68
views
Every time i create new sails project and try to log in this error will come help me with this plz
enter image description here
CloudError: Endpoint (`observeMySession`) responded with an error (or the request failed).
I need to fix this error this is my browser console error and those come while ...
0
votes
1
answer
84
views
sails.io.js with Svelte3/4 SvelteKit
I've been trying to port my app from older Svelte3/Rollup to newer Vite based setup and am having trouble initializing sails.io.js client to work inside Svelte.
What used to work really well in the ...
0
votes
1
answer
369
views
Listening to sails socket in react
I'm trying to listen to changes from Sails socket in the front-end using react.
Server listen to changes in a MongoDB Collection and blasts the changes:
// Setting up connection to MongoDB
const ...
0
votes
1
answer
182
views
Use layout.ejs dynamic or how to edit a view-layout.js
Every Page which will be included in the layout.ejs has a view-pagename.js so I can use dynamic content in it.
How can I bring dynamic content a a default function to the layout page? There is no view-...
0
votes
1
answer
47
views
Sails.js sails.io.js, blueprints not getting events from .publish(), how to subscribe to all events?
I don't know why I'm not getting notification events from sails models from model.publish().
In pre-1.x sailsjs, similar client-side code had worked and I would get every event when records are ...
1
vote
0
answers
1k
views
Request payload not found in network tab in chrome devtools
In the https://github.com/pantsel/konga application, I created a connection, but not found the payload data in the network tab.
I saw the request to "/api/kongnode", the only request was ...
0
votes
1
answer
712
views
How to connect socket from VueJs with Sails js built in socket with sails.io.js in vue js?
I am trying to connect VueJs with Sails js over socket connection through Sails.io.js package but got not success till now.
I have taken VuejS starter template and sails js starter template to make ...
0
votes
1
answer
316
views
update data in state array on socket event
Here is my code:
import React, { useEffect, useState } from 'react';
import Loader from './Loader.jsx';
import Unit from './Unit.jsx';
import Comments from './Comments.jsx';
export default function ...
3
votes
0
answers
138
views
sailsjs sockets and nginx proxy
i have a nodejs sails app proxied by nginx.Everything works fine but cant seem to connect to sails.io websocket.I get the error below in browser
Refused to connect to 'wss://youtmail.tk/socket.io/?...
1
vote
0
answers
135
views
Why isn't the client receiving updates from socket that has been subscribed to the Sails.js model when I change the data?
I've been trying to figure out how to get realtime updates with a React Native client connected to a Sails.js socket for the last few hours.
I'm not seeing any error messages that I'm aware of.
In the ...
0
votes
2
answers
113
views
How to prevent insert of data that is passed using query string in sails.js for post request?
I have created new table in mysql also created model and controller in sails.js. Now I am trying to insert data using sails. As we know when we create new modal in sails it will create new post, get ...
3
votes
1
answer
2k
views
https not working in localhost in sailsjs
I am trying to setup ssl in my local system. I am using windows machine with sails js application.
here is the configuration that I did.
/**
* Production environment settings
* (sails.config.*)
*
...