amphp / websocket-client

Async WebSocket client for PHP based on Amp.
https://amphp.org/websocket-client
MIT License
148 stars 18 forks source link

In Rfc6455Connection.php line 189:The connection was closed: Client closed the underlying TCP connection #13

Closed pursonc closed 5 years ago

pursonc commented 6 years ago

Could you give me some advise that how to fix this error

In Rfc6455Connection.php line 189:The connection was closed: Client closed the underlying TCP connection

kelunik commented 6 years ago

It means the connection got closed without a closing handshake at the WebSocket protocol level. When does this happen? Immediately? After some time?

pursonc commented 6 years ago

@kelunik After some time . i connect to the server : wss://real.okex.com:10440/websocket/okexapi

and the api document :https://github.com/okcoin-okex/API-docs-OKEx.com/blob/master/API-For-Futures-EN/WebSocket%20API%20for%20FUTURES.md

kelunik commented 6 years ago

Connection breaks might happen from time to time for various reasons. If the connection breaks, you have to create a new one.

trowski commented 5 years ago

Closing this issue due to being idle for some time. If you have additional questions feel free to reopen this issue or open a new issue.