$onClose $onClose : callback Emitted when the other end of the socket sends a FIN packet. Type callback
send() send(string $send_buffer) : void|boolean Sends data on the connection. Parameters string $send_buffer Returns void|boolean