This simple changeset drops the deprecated Server class from this package. As of v1.9.0, we recommend using the SocketServer class instead to avoid class name collisions, so upgrading should be straightforward for most use cases:
// old (no longer supported)
$socket = new React\Socket\Server(0);
$socket = new React\Socket\Server('127.0.0.1:8000');
$socket = new React\Socket\Server('127.0.0.1:8000', null, $context);
$socket = new React\Socket\Server('127.0.0.1:8000', $loop, $context);
// new (already supported since v1.9.0)
$socket = new React\Socket\SocketServer('127.0.0.1:0');
$socket = new React\Socket\SocketServer('127.0.0.1:8000');
$socket = new React\Socket\SocketServer('127.0.0.1:8000', $context);
$socket = new React\Socket\SocketServer('127.0.0.1:8000', $context, $loop);
The original deprecation message has been in place for a couple of years already, so this should be relatively safe to apply.
This simple changeset drops the deprecated
Server
class from this package. As ofv1.9.0
, we recommend using theSocketServer
class instead to avoid class name collisions, so upgrading should be straightforward for most use cases:The original deprecation message has been in place for a couple of years already, so this should be relatively safe to apply.
Builds on top of #263.