diff --git a/src/Own3d/Socket/Support/SocketToken.php b/src/Own3d/Socket/Support/SocketToken.php index e824c1a..7446833 100644 --- a/src/Own3d/Socket/Support/SocketToken.php +++ b/src/Own3d/Socket/Support/SocketToken.php @@ -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',