walkor 12 年之前
父節點
當前提交
9e50e9f97d
共有 1 個文件被更改,包括 3 次插入0 次删除
  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());
         }
     }