File tree 1 file changed +3
-9
lines changed
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
21
21
* The config could be an array, string DSN or null. In case of null it will attempt to connect to Ratchet localhost.
22
22
*
23
23
* $config = [
24
- * 'lazy' => true,
25
24
* 'dsn' => 'wamp://127.0.0.1:9090',
26
25
* 'host' => '127.0.0.1',
27
26
* 'port' => '9090',
@@ -50,7 +49,6 @@ public function __construct($config = 'wamp:')
50
49
}
51
50
52
51
$ config = array_replace ([
53
- 'lazy ' => true ,
54
52
'host ' => '127.0.0.1 ' ,
55
53
'port ' => '9090 ' ,
56
54
'max_retries ' => 15 ,
@@ -64,13 +62,9 @@ public function __construct($config = 'wamp:')
64
62
65
63
public function createContext (): Context
66
64
{
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
+ });
74
68
}
75
69
76
70
private function establishConnection (): Client
You can’t perform that action at this time.
0 commit comments