All Questions
1,040
questions
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 ...
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'
...
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: { ...
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 ...
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-...
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 ...
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 ...
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 ...
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 ...
-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 ...
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 ...
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
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 (...
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 ...
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) ...