diff --git a/src/Ratchet/Component/Server/IOServerComponent.php b/src/Ratchet/Component/Server/IOServerComponent.php index 04d50ca..234fed5 100644 --- a/src/Ratchet/Component/Server/IOServerComponent.php +++ b/src/Ratchet/Component/Server/IOServerComponent.php @@ -47,7 +47,7 @@ class IOServerComponent { $loop = LoopFactory::create(); $socket = new Reactor($loop); $socket->listen($port, $address); - $server = new self($component, $socket, $loop); + $server = new static($component, $socket, $loop); return $server; }