stream->write($message->toString()); } public function isAuthorized(): bool { return $this->request->getAttribute('authorization') instanceof JWTToken; } }