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());
         }
     }