All Questions
70
questions
0
votes
0
answers
48
views
Stompjs + React application - Client connection closed automatically
I'm trying to use the stompjs library along with React application to establish a WebSocket connection with a server. However, I'm facing an issue where the connection is opened and closed immediately....
0
votes
0
answers
28
views
Incorporating a websocket in my react-native application and having it update a screen if the screen is currently active
I have a websocket that updates data and it exists on my main screen that has a tab navigator. If one of my tabs is open i would like for it to update in real time. I've been having some trouble on ...
0
votes
0
answers
499
views
Is it good practice to implement my Socket.io within a React Context?
I need my socket to be accessible across all of the components within my application. My original idea was to implement the socket within a react context and then wrapping the entire application ...
0
votes
0
answers
48
views
React Native Expo , the intialized custom socket connection shows error:
I want a help and it would be very grateful if anyone would help me to debug the code and tell me whats am I doing wrong here: my custom websocket hook
the error I get is that, it prints out the ...
2
votes
0
answers
199
views
Best practice architecture of React Native with using Websocket
I am building crypto exchange app with using React-Native and WebSocket. Here is my general issues:
Once I assign webSocket out of the class it does not connect event. How can I create singleton ...
1
vote
0
answers
102
views
Is there a way for my library to use WebSockets in both React Native and React on the Web?
I'm writing a cross-platform (i.e. both native and web) React library that needs to use websockets.
The issue is that I can't find any documentation on whether or not I can just use the built in ...
0
votes
1
answer
212
views
React native websocket working in debug mode but not after creating apk
Please help. I am creating an app in react native that displays live data of orders, everything is working fine in debug mode when I run the app on the emulator or directly run it on my mobile, the ...
0
votes
0
answers
251
views
WebSocket connection not working in React Native useEffect with Socket.IO
I'm trying to establish a WebSocket connection in a React component using Socket.IO within a useEffect hook. However, the connection doesn't seem to work, and I'm unable to figure out why. Here's the ...
2
votes
1
answer
283
views
React native websocket not working in release mode
So I'm trying to make a react native app that communicates with a websocket c# server. Everything works fine in debug mode but when I create a release apk and I try to run it it just doesn't work. Can ...
2
votes
0
answers
79
views
react-stomp only working in debug mode in React-native
I am using react-stomp for subscribing stomp connection but it is only working in debug mode
import SockJsClient from 'react-stomp';
<View>
<SockJsClient
url={STAMP_URL}
topics=...
0
votes
2
answers
308
views
Communication between React Native Mobile App and React.js Hbbtv App
Can you explain how to make connection between Hbbtv React App in TV and mobile App in React Native?
I implement SSDP Client in React Native Mobile App to look for SSDP Server (That should be ...
0
votes
2
answers
632
views
Unable to connect to django channels on react native app using web sockets
I am trying to use web sockets to connect to Django Server/Channels. The HTTP views are working but the "ws" ( WebSocket ) connection is being rejected but ONLY on The REACT NATIVE APP. It's ...
0
votes
0
answers
29
views
React native repeatedly calling mystery websocket url, connection refused
Using my network inspector on my simulator, I'm seeing react native repeatedly try to connect to ws://localhost:7700. There are no websockets in my codebase and it's unclear what actually is failing ...
1
vote
0
answers
560
views
websocket error: can't connect socket.io to react-native project
I am using socket.io Version: ^4.5.1 in a chat application, but I am facing this error:
websocket error
my code:
import {io} from 'socket.io-client';
import {server} from 'store/config';
export ...
0
votes
0
answers
86
views
How to update states for every microsecond in react-native
I'm using currency.com's API to fetch market data and display it on my react-native app. Since the socket response from currency.com is real-time and changes very fast and frequently the setState() ...