Skip to content

Commit

Permalink
Add multi-room auth
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostzero committed Jun 17, 2024
1 parent 2479cdb commit 155ef5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Own3d/Socket/Support/SocketToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class SocketToken
* This will generate a token that can be used to authenticate with the socket server to join a specific room.
* If the room starts with `private`, the socket server will also join the public room with the same name.
*/
public static function auth(string $room): string
public static function auth(string|array $room): string
{
return self::encode(self::payload('auth', [
'type' => 'auth',
Expand Down

0 comments on commit 155ef5d

Please sign in to comment.