Open psi-gh opened 6 years ago
Hey!
Thank you for reporting this, I'm gonna check and add some unit tests for the future!
Hi, have the same issue - app crashes after few minutes, reason - 'Cannot call -(void)open on SRWebSocket more than once'
@aparandiy Seems like this repo not supporting. You can look at Apollo project.
if I am listening for subscriptions from one controller - all works perfect, but if i connect subscriptions more than one controller - it works, but after few minutes of using the app crashes with reason - Cannot call -(void)open on SRWebSocket more than once
Ok I see where is the bug, I need to rush and push two solutions:
I have such crash. It occurring in ~1 minute after running app if I specify
reconnect: true
ingql.initServer(connectionParams: nil, reconnect: true)
If I set reconnect to false, there won't be crash, but subscription will stop in 1 minute without any notice.