Skip to content

Commit 1dd3078

Browse files
committed
Updates
1 parent 86a43bf commit 1dd3078

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/Interfaces/Modules/Remote.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99

1010
interface Remote extends Module
1111
{
12-
public function connection(WebsocketHandshake $socket): void;
12+
public function handshake(WebsocketHandshake $handshake): void;
1313
}

src/Modules/Remote.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ public function monitor(Trigger $monitor): void
5454
throw new NotImplementedException;
5555
}
5656

57-
public function connection(WebsocketHandshake $socket): void
57+
public function handshake(WebsocketHandshake $handshake): void
5858
{
59-
$this->handshake = $socket;
59+
$this->handshake = $handshake;
6060
}
6161
}

src/RevolutionPi.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ public function module(): Module
2828
{
2929
if ($this->handshake !== null) {
3030
$module = app(Remote::class);
31-
$module->connection($this->handshake);
31+
$module->handshake($this->handshake);
3232

3333
return $module;
3434
}
3535

3636
return app(Module::class);
3737
}
3838

39-
public function address(WebsocketHandshake|PsrUri|string $handshake): static
39+
public function remote(WebsocketHandshake|PsrUri|string $handshake): static
4040
{
4141
if (! $handshake instanceof WebsocketHandshake) {
4242
$handshake = new WebsocketHandshake($handshake);

0 commit comments

Comments
 (0)