Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit c85ec38

Browse files
authored
Added getName() to channels
1 parent 8a3e892 commit c85ec38

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/WebSockets/Channels/Channel.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ public function __construct(string $channelName)
2121
$this->channelName = $channelName;
2222
}
2323

24+
public function getName(): string
25+
{
26+
return $this->channelName;
27+
}
28+
2429
public function hasConnections(): bool
2530
{
2631
return count($this->subscribedConnections) > 0;

0 commit comments

Comments
 (0)