Hyperf provides an encapsulation of WebSocket Client. The WebSocket Server could be accessed through [hyperf/websocket-client](https://github.com/hyperf/websocket-client) component.
$client->push('Use WebSocket Client to send data in HttpServer.');
// Get a response from the server. The server should use 'push()' to send messages to fd of the client, only in this way, can the response be received.
// A Frame object is taken as an example in following with 2 seconds timeout.
By default, the created `Client` object will be closed by `defer`. If it is not wished, the auto-close could be closed by setting the `$autoClose` as `false` when a `Client` is in instantiating.