All Questions
1,043
questions
0
votes
0
answers
7
views
Getting a lot of errors in this aws-sdk server mainly in websockets
I am getting multiple warning and errors but I am not able to debug them
The delay between the input submitted and the server is extremely long (approx 90 sec) with increases with more emit functions ...
0
votes
0
answers
13
views
Getting multiple errors in this aws-sdk server mainly in websockets
I am getting multiple warning and errors but I am not able to debug them
The delay between the input submitted and the server is extremely long (approx 90 sec) with increases with more emit functions ...
0
votes
0
answers
26
views
Hello Everyone ! i want to connect webSocket to my mern app but getting some error
i am working on realtime chat-app ... want to integrate websocket for instance chat ... but i am getting the error i am getting this kind of error (socket__io-client.js?v=6fe409f1:1018 WebSocket ...
0
votes
0
answers
25
views
How to pass custom headers in the upgrade requests using a WebSocket client in my React App
I have tried using the native websocket library to initiate upgrade connection requests. However, my server requires the access token to be sent as a header.
Is there a way to pass access token as a ...
-2
votes
0
answers
21
views
Problem in screen sharing in WebRTC using MERN stack [closed]
I'm making a simple Google Meet type application using MERN stack. I have connected the users they can communicate over each other through video calling. But when User A tries to screen share I'm ...
0
votes
0
answers
33
views
in canvas drawing is visible in person who is drawing but its not drawing in other persons screens. in console coordinates are same for all
Here is code where I have backend as springboot not sure whats causing the blank canvas for others.
I am trying to make project like skribble. All other events are working but drawing is not a ...
1
vote
1
answer
31
views
React + Django webapp doesnt show user messages, despite showing server messages which are managed by the same logic both frontend and backend
What the title says, I'm trying to make battleships with websockets, yesterday everything was going more or less smooth, aside from having multiple ws opening so after changing stuff around for a ...
0
votes
0
answers
18
views
Add header to SockJS
i am using this code to connect to my websocket spring boot, but it not working when im add header into.
import { Client, IMessage, IFrame } from '@stomp/stompjs'
import SockJS from 'sockjs-client'
...
1
vote
0
answers
19
views
How can i send messages via WebSockets with React on the frontend and trpc on the backend
I know I can receive data from trpc in React and do I have the possibility to send messages via wsLink? I want to connect to Binance and be able to place orders via WebSockets, so far I've only been ...
0
votes
1
answer
44
views
How to keep websockets alive in background?
WS Connection opens and stays open for quite a long time - which is great. If you leave the page for a long time or the computer goes to sleep/hibernation, the WS connection closes and is never re-...
0
votes
0
answers
18
views
How to handle SPA application reload to fetch current deployed version over firebase in react.js?
I am facing a problem where my application needs to do a hard refresh in order to reflect new changes after deploying latest version.
Went through multiple ways in order to solve this such as service ...
2
votes
0
answers
27
views
Authenticating websockets - adding credentials to Stomp.js client
According to spring doc authentication for websocket falls back to authentication of HTTP request ( handshake ) and when spring-security is set up, no more configuration is needed.
I have set up the ...
0
votes
0
answers
20
views
Can i use one shared-worker across sub domains?
I am having 4 react web applications, all of them use realtime data from webscockets.
Currently in each of them i create a web worker and that handles all the websocket things,
It's a stock broking ...
0
votes
0
answers
32
views
Websocket in NodeJS and ReactJs not connecting
I deployed a React.js PWA application (frontend) and a NodeJS backend in a server. Both are working well with Nginx and PM2. I created a WebSocket in my backend server to connect with my Frontend, but ...
-1
votes
1
answer
52
views
React State Resets to Default When WebSocket Message is Received
I'm working on a React project using WebSockets to receive real-time updates. However, I'm encountering an issue where my component's state resets to the default value every time a WebSocket message ...
0
votes
0
answers
24
views
Error querying device-1 while trying to send streaming audio data to backend served on EC2
In local environment, my application was running smoothly without any issues, but when I deployed it on EC2, I was getting an error querying device -1 while I was trying to send streaming audio data ...
2
votes
0
answers
41
views
WebSocket is not receiving messages
I have simple STOMP websockets:
@Configuration
@EnableWebSocketMessageBroker
public class WebSocketConfig implements WebSocketMessageBrokerConfigurer {
@Override
public void ...
0
votes
0
answers
14
views
Only pingpong data is received from an external web socket
I am implementing logic that receives real-time stock prices from an external websocket (KIS WebSocket) and sends this information to the front end.
The structure is:
React (frontend) - Nest.js (...
0
votes
0
answers
29
views
Emitting messages from Flask using socketio in main loop, not received by client?
I'm working on a project where I have a Flask server, and I'm trying to use flask-socketio to send messages to the front-end react component. Apologies in advance for any lack of understanding. I have ...
0
votes
0
answers
16
views
Error: Rendered more hooks than during the previous render with next-auth & socket.io
const [bidAmount, setBidAmount] = useState<number>(product?.data?.currentPrice);
const { data: session } = useSession();
const socket = useClient();
useEffect(() => {
if (!socket) ...
0
votes
1
answer
49
views
Storing async WebSocket messages in React state without message loss
I have a React app that connects to a WebSocket using react-use-websocket. Messages are received asynchronously, processed by receiveHandler and then the socketMessages state is updated with the ...
1
vote
1
answer
67
views
WebSocket Connection Fails in docker client but not in local / container
Context
I'm working on a React client app for a chat app using rabbitmq, ws, docker, docker compose, react-use-websocket.
repository here
Problem
The Websocket connection fails from the browser of the ...
1
vote
0
answers
60
views
Socket.io events in React.js and Node.js are not being triggered
I'm building a chat application in React js and Node js.
The events that I have written in React.js and Node.js do not seem to be triggered. I can login and see data in both the browser and the ...
0
votes
0
answers
11
views
Changing the WS-URL of React.js DEV
I have a React application running on PORT 5447, but it is redirected to a subdomain on port 80 using Nginx Multihost.
Example: dev.react-app.net
The connection basically works, but my React ...
0
votes
0
answers
58
views
Laravel Rever and React Configurations
I want to connect my React app with Laravel Reverb.
When connecting to a public channel everything works fine. but when trying to connect to a private channel I get connection refused
My React Code
...
0
votes
0
answers
63
views
Authentication in websocket
I have an express application, which serves some api endpoints and a websocket. Web sockets have rooms and on every message it inserts a message to mongodb.
wsServer.on("connection", (ws, ...
0
votes
0
answers
25
views
I'm using React to develop the web, but the socket is disconnected right away
Hi I'm trying to send and receive videos through a web socket connection
The html code runs properly, connects and receives photos
But the one that's made of react doesn't work
It's a code that's ...
0
votes
0
answers
80
views
Stream Huggingface Text Generation Response Via Websocket
So I am new to working with websockets and seem to be at a snag with my current code base. Essentially, I have a React frontend where the user asks a question and supplies some parameters, this ...
0
votes
1
answer
91
views
How connect React to MQTT over WSS
I am trying to connect to the MQTT Broker using MQTT.js in my React application, but I am getting an error with the WSS protocol.
First, my mosquitto.conf file:
# mosquitto.conf
pid_file /run/...
0
votes
0
answers
40
views
WebSocket Connection Fails with 301 Moved Permanently on DigitalOcean App Platform with NGINX
I have a React frontend and a .NET Core 8 backend running on DigitalOcean App Platform. The backend acts as a WebSocket server. Everything works when tested locally or with tools like Postman, but my ...