diff --git a/src/MessageSubject.php b/src/MessageSubject.php index e476ba1..1c432b9 100644 --- a/src/MessageSubject.php +++ b/src/MessageSubject.php @@ -107,8 +107,8 @@ function (FrameInterface $frame) { ->merge($keepAliveObs) ->subscribe( [$messageBuffer, 'onData'], - [$this, 'parent::onError'], - [$this, 'parent::onCompleted'] + parent::onError(...), + parent::onCompleted(...) ); $this->subProtocol = $subProtocol;