amphp / websocket-client

Async WebSocket client for PHP based on Amp.

Home Page:https://amphp.org/websocket-client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

pursonchen opened this issue · comments

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

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

@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

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

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.