walkor 12 lat temu
rodzic
commit
9e50e9f97d
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3 0
      Workers/GameGateway.php

+ 3 - 0
Workers/GameGateway.php

@@ -165,6 +165,9 @@ class GameGateway extends WORKERMAN\Core\SocketWorker
                 }
                 $this->uidConnMap[$uid] = $socket_id;
                 $this->connections[$socket_id] = $uid;
+                $buf = new GameBuffer();
+                $buf->body = 'connect success';
+                $this->sendToUid($uid, $buf->getBuffer());
         }
     }