Socket close/timeout after 2 mins of working

plugins
ios
android

#1

I am facing this issue with nativescript-websockets where the pingreq times out or I get a socked closed error after 2 minutes of normal working of socket. I made the same project in react-native and it works without any issues. The socket works for a while and I get any data in that time but then stops working without any attempt to reconnect. I am using nativescript-websockets with aws appsync.

Here is the stackoverflow issue I created for this.


#2

Did you try setting the timeout to zero (0).


#3

@manojdcoder yes, in that case I get a socket closed issue after 2 minutes. It’s either pingreq timeout or socket closed.


#4

Were you able to reproduce the issue in his exact sample app and server?