onError
Description:
callback Connection::$onError
It serves the same purpose as the Worker::$onError callback, but the difference is that it only applies to the current connection, which means you can set an onError callback for a specific connection individually.