1.优化websocket中的jackpot.hit
This commit is contained in:
@@ -114,7 +114,12 @@ class GameWebSocketServer
|
||||
|
||||
$connection->wsAuth = $auth;
|
||||
self::$connectionAuth[$connection->id] = $auth;
|
||||
GameWebSocketSubscriptionRegistry::registerConnection($connection->id, (int) $auth['user_id'], $remoteIp);
|
||||
GameWebSocketSubscriptionRegistry::registerConnection(
|
||||
$connection->id,
|
||||
(int) $auth['user_id'],
|
||||
is_string($auth['mode'] ?? null) ? (string) $auth['mode'] : 'mobile',
|
||||
$remoteIp
|
||||
);
|
||||
|
||||
Log::channel('ws')->info('handshake ok', [
|
||||
'connection_id' => $connection->id,
|
||||
|
||||
Reference in New Issue
Block a user