public function onError($buffer, $error, $connectionId) { //echo "Connection closed: $connectionId\n"; $this->close($connectionId); }