All Questions
61
questions
1
vote
1
answer
692
views
React + Websocket + Redux
I have a server (express), which refreshes data every 50ms.
I added a websocket server on this express server, and for a list of data I just send them through this websocket to the react interface.
So ...
0
votes
0
answers
94
views
Using Websocket data coming from Redux state causes infinite component code rerender in Next js
I receive Binance Websocket data from my Redux state. But using this data in one of my components causes infinite code rerender in it. const socketData = useSelector((state: RootState) => state....
0
votes
0
answers
111
views
How to implement multiple websockets with dynamic link in redux action?
my task is to get Binance coins websockets data and set it to redux store and then display them on view, but I dont know how to implement seperate payload for each of these websocket data. Here is ...
1
vote
1
answer
466
views
How to get websocket data as state in redux?
My task is to set a websocket and get its data with onMessage() and assign it to redux state. But I don`t know how to implement it. What is the solution?
0
votes
1
answer
1k
views
Can I use redux-thunk with socket.io or do I need to build a custom middleware?
I'm trying to practice crud app with socket.io. I want to use redux for state management but not sure what middleware i need to use though. Is redux-thunk ok to use with socket.io?
This is what my ...
0
votes
0
answers
71
views
Cannot access redux state
getProps = () => { // intented by a button click event
console.log(props.somevalue) // it prints the value
}
socket.listen((data)=>{
if(data.meta === 'sometrigger'){
console.log(...
1
vote
0
answers
108
views
SignalR hub.On methods work after refreshing the page
I have this code on ReactJS and SignalR. The SignalR On methods works only after page refresh. Please explain me how to solve this problem.
componentDidMount() {
const connection = new ...
0
votes
0
answers
235
views
Why does the websocket close and open another one?
I'm having a problem with the ws . In principle I should only have one ws running in the application. But in certain situations (which I don't understand) two things happen:
More than one ws are ...
0
votes
1
answer
1k
views
Reusing websocket connection object in Redux Saga
I have a problem. I am connecting to the server with the help of websocket inside React Redux eventChannel. I have no problems with receivng event from the server but i cant sent event to the server. ...
0
votes
1
answer
126
views
Redux Saga + Socket lags
I am learning Redux-Saga and faced such a problem.
I have a socket that sends me 40+ messages per second in real time.
This is written to the Store via yield put, and as I understand it, the data does ...
0
votes
0
answers
166
views
React rerender component A LOT of times performance
I'm developing an aplication using react that is receiving data from a web socket (this web socket will feed me with huge amounts of data, more than 500 records per second). My question is how would ...
4
votes
2
answers
3k
views
Receiving same message multiple times via web socket. The older messages are replaced after 3 or 4 new chat messages
I am integrating web sockets into React with Django in back-end.
I am able to send messages, and receive the new messages from the back-end.
The problem is that after sending 3 or 4 messages, the ...
3
votes
2
answers
1k
views
Websocket event receiving old redux state in React app
I am building a Chat application using Reactjs and Redux. I have 2 components called ChatHeads and ChatBox which get mounted side-by-side at the same time.
In the ChatHeads component, the selection of ...
0
votes
1
answer
669
views
WebSocket onmessage connection is null React-ReduxSaga
I am getting a null .onmessage
but .onopen is working
import * as types from './types';
import { eventChannel } from 'redux-saga';
import { takeEvery, put, call, select, take } from 'redux-saga/...