Skip to main content

All Questions

Tagged with
1 vote
1 answer
25 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 ...
Sostanco's user avatar
0 votes
0 answers
12 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' ...
Kiên Phạm Thanh's user avatar
0 votes
0 answers
13 views

Particles not rendering as I want them unless I make a manual change to the file

... import 'particles.js/particles; ... useEffect(() => { const particlesJS = window.particlesJS; particlesJS("particles-js", { particles: { number: { ...
hj hkjh's user avatar
0 votes
0 answers
15 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 ...
seven's user avatar
  • 1,472
0 votes
1 answer
35 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-...
Satej Bidvai's user avatar
0 votes
0 answers
15 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 ...
Satvinder pal singh's user avatar
2 votes
0 answers
26 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 ...
Darlyn's user avatar
  • 4,862
0 votes
0 answers
16 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 ...
Harsh's user avatar
  • 1
0 votes
0 answers
31 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 ...
Guilherme Hepfener's user avatar
-1 votes
1 answer
49 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 ...
user25703354's user avatar
0 votes
0 answers
20 views

Error quering 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 the error querying device -1 error while i was trying to send streaming audio ...
Parimal Kolhe's user avatar
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 ...
Darlyn's user avatar
  • 4,862
0 votes
0 answers
13 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 (...
LSH's user avatar
  • 1
0 votes
0 answers
28 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 ...
user25546427's user avatar
0 votes
0 answers
14 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) ...
sachin kumar's user avatar

15 30 50 per page
1
2 3 4 5
70