File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 9
9
10
10
interface Remote extends Module
11
11
{
12
- public function connection (WebsocketHandshake $ socket ): void ;
12
+ public function handshake (WebsocketHandshake $ handshake ): void ;
13
13
}
Original file line number Diff line number Diff line change @@ -54,8 +54,8 @@ public function monitor(Trigger $monitor): void
54
54
throw new NotImplementedException ;
55
55
}
56
56
57
- public function connection (WebsocketHandshake $ socket ): void
57
+ public function handshake (WebsocketHandshake $ handshake ): void
58
58
{
59
- $ this ->handshake = $ socket ;
59
+ $ this ->handshake = $ handshake ;
60
60
}
61
61
}
Original file line number Diff line number Diff line change @@ -28,15 +28,15 @@ public function module(): Module
28
28
{
29
29
if ($ this ->handshake !== null ) {
30
30
$ module = app (Remote::class);
31
- $ module ->connection ($ this ->handshake );
31
+ $ module ->handshake ($ this ->handshake );
32
32
33
33
return $ module ;
34
34
}
35
35
36
36
return app (Module::class);
37
37
}
38
38
39
- public function address (WebsocketHandshake |PsrUri |string $ handshake ): static
39
+ public function remote (WebsocketHandshake |PsrUri |string $ handshake ): static
40
40
{
41
41
if (! $ handshake instanceof WebsocketHandshake) {
42
42
$ handshake = new WebsocketHandshake ($ handshake );
You can’t perform that action at this time.
0 commit comments