You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 25, 2023. It is now read-only.
I have an issue with my WebSocket setup that the client Android app occasionally doesn't respond to a ping of the PingFrame fast enough with a pong. This causes the web socket server to return a close frame. This is fine except that there is a bug in the reconnection logic of my app that means it occasionally doesn't reconnect. I want to be able to replicate the bug caused by the close frames being received reliably.
OkHTTP has SocketPolicy. Is there a recommended way to use SocketPolicy with MockWebServer? I've been struggling to understand how to implement SocketPolicy with either OkHTTP's MockWebServer or fabric8io's MockWebServer.
Another very nice solution would be if I could send a close frame in response to a certain message or after a certain time. e.g. .andEmit(CloseFrame())
The text was updated successfully, but these errors were encountered:
TTransmit
changed the title
Mocking server to return close frames
Feature request: Mocking server to return close frames
Aug 12, 2020
TTransmit
changed the title
Feature request: Mocking server to return close frames
Feature request: Mocking server returning close frames
Aug 12, 2020
TTransmit
changed the title
Feature request: Mocking server returning close frames
Mocking server returning close frames
Aug 12, 2020
I have an issue with my WebSocket setup that the client Android app occasionally doesn't respond to a ping of the PingFrame fast enough with a pong. This causes the web socket server to return a close frame. This is fine except that there is a bug in the reconnection logic of my app that means it occasionally doesn't reconnect. I want to be able to replicate the bug caused by the close frames being received reliably.
OkHTTP has SocketPolicy. Is there a recommended way to use SocketPolicy with MockWebServer? I've been struggling to understand how to implement SocketPolicy with either OkHTTP's MockWebServer or fabric8io's MockWebServer.
Another very nice solution would be if I could send a close frame in response to a certain message or after a certain time. e.g.
.andEmit(CloseFrame())
The text was updated successfully, but these errors were encountered: