I use signalr for connection between my android game with unity and server but because of unreliability of mobile data connection (3G) web socket connection lost and reconnect periodicly. what is the best transport type in this situation? Does Server Sent Events better than WebSocket for unreliable networks? Description : client sends requests almost every 15 seconds.
What is the Best Transport type of SignalR for unreliable networks?
779 Views Asked by ali afshari At
1
There are 1 best solutions below
Related Questions in WEBSOCKET
- How to send raw data using socket.io
- HttpRequestContext vs HttpContext
- Websocket support on JBoss 6
- How to send/receive messages through a web socket on windows phone 8.1
- Stop receiving an event for some time in socket io
- Nginx not passing websocket upgrade response back to client?
- Jboss showing this error in eclipse
- Oauth in Tyrus WebSocket
- Meteor: Workaround for having websockets blocked in port 80?
- Python Server - Processing WebSocket.close()
- Multithread using Executor and WebSocket
- Start Rumpetroll on Debian
- What are the possible bugs that cause slow response (sometimes but not all the time) for a websocket connection?
- Ratchet websocket server not responding after some hour
- Angularjs data is not updated on call of $apply
Related Questions in SIGNALR
- SignalR HubConnection.Start() succeeds but Invoke() fails with authentication error
- Task await fails
- Aborting/Cancelling an AJAX request not working in IE
- Signalr:'default' done for a hub.server.method call
- SignalR oAuth on self host
- SqlDependancy is firing more times
- Multiple Calls from SignalR client
- Can I run SignalR hub through Azure API Management?
- How to save connection when u change page in signalR
- Signal R Thread blocking the HTTP Request and Response
- Websocket Android SignalR with Forms Authentication don´t connect
- send SignalR client message from background thread
- Real time updates from mySQL database with ASP.NET SignalR
- Callback on client does not get triggered with SignalR
- Can a SignalR method name be namespaced?
Related Questions in SERVER-SENT-EVENTS
- Implementation of an SSE server in Java cannot keep persistent connection
- How to close EventSource connection on Firebase server using .NET HttpClient with Firebase REST Streaming API
- Scalable private message system
- Server-Sent Events in Restlet 2.3 Framework - Is It Possible?
- Server-Sent Events Polling causing long delays
- server sent events while loop takes so much time for page load, when page is refreshed or F5 is pressed
- How send Sever Sent Events on POST using PHP?
- Close event not working when using Node.js request module for piping?
- Reading Server Side Events in Python using sseclient
- Server-Sent Events multiple clients
- Tomcat - Server sent events with HTTP2 without async servlet on Tomcat8.5
- Netty server with open http connections limit
- Java SSE method in doGet() not working
- Cannot resolve Server-Sent Events issue with basic settings
- How to prevent net::ERR_INCOMPLETE_CHUNKED_ENCODING when using HTML5 Server events and Java Servlets?
Related Questions in UNRELIABLE-CONNECTION
- Message queuing from android considering unreliable network
- Application design for data persistence over unreliable internet
- Reliable(durable) distributed logging engine
- Android app handling write requests over unreliable network
- Two generals' agreement
- Are there any libraries or samples for non-duplex WCF chunking?
- Strategies for Java ORM with Unreliable Network and Low Bandwidth
- Are there any programs that can simulate an unstable network connection?
- Reliable UDP and ACK method question
- Solution for Web Application with Unreliable Internet Connection
- MySQL table synchronization : incomplete copy without error
- Why does Android Bluetooth stop receiving bytes after a few minutes?
- BLE: obtaining BluetoothDevice via BluetoothAdapter#getRemoteDevice() vs scanning
- RabbitMQ - deal with unreliable service
- What is the Best Transport type of SignalR for unreliable networks?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The transport is not the problem. If 3G goes off, it doesn´t matter what transport you are using. I suggest you to let SignalR pick the transport. You just need to implement a reconnection logic. SignalR will try to reconnect for some seconds, after a time out (don´t remember how many seconds) it won´t ever reconnect. It´s not hard to implement the logic as you can listen for connection events (connected, disconnected, reconnecting...).
Another issue is that any method your app calls (when disconnected or when trying to reconnect) will be lost in the dark. So a good idea may be some sort of caching to save those calls in a queue and re-send them once reconnection is done.
Check out how this sample handles connection, disconnections and caching of failed method calls