File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ class WampConnectionFactory implements ConnectionFactory
2121 * The config could be an array, string DSN or null. In case of null it will attempt to connect to Ratchet localhost.
2222 *
2323 * $config = [
24- * 'lazy' => true,
2524 * 'dsn' => 'wamp://127.0.0.1:9090',
2625 * 'host' => '127.0.0.1',
2726 * 'port' => '9090',
@@ -50,7 +49,6 @@ public function __construct($config = 'wamp:')
5049 }
5150
5251 $ config = array_replace ([
53- 'lazy ' => true ,
5452 'host ' => '127.0.0.1 ' ,
5553 'port ' => '9090 ' ,
5654 'max_retries ' => 15 ,
@@ -64,13 +62,9 @@ public function __construct($config = 'wamp:')
6462
6563 public function createContext (): Context
6664 {
67- if ($ this ->config ['lazy ' ]) {
68- return new WampContext (function () {
69- return $ this ->establishConnection ();
70- });
71- }
72-
73- return new WampContext ($ this ->establishConnection ());
65+ return new WampContext (function () {
66+ return $ this ->establishConnection ();
67+ });
7468 }
7569
7670 private function establishConnection (): Client
You can’t perform that action at this time.
0 commit comments