|
@@ -9,10 +9,6 @@ use Common_pack\ResEnterHall;
|
|
use Common_pack\ResLogin;
|
|
use Common_pack\ResLogin;
|
|
use Google\Protobuf\Internal\Message;
|
|
use Google\Protobuf\Internal\Message;
|
|
|
|
|
|
-class MsgID {
|
|
|
|
- const ENTERHALL = 1;
|
|
|
|
- const RESENTERHALL = 2;
|
|
|
|
-}
|
|
|
|
|
|
|
|
class GameClient {
|
|
class GameClient {
|
|
private ?WebSocketClient $client = null;
|
|
private ?WebSocketClient $client = null;
|
|
@@ -92,6 +88,7 @@ class GameClient {
|
|
}
|
|
}
|
|
|
|
|
|
private function initWebSocketConnection() {
|
|
private function initWebSocketConnection() {
|
|
|
|
+ // wss://leaf.ktle.top
|
|
$this->client = new WebSocketClient('ws://localhost:3653');
|
|
$this->client = new WebSocketClient('ws://localhost:3653');
|
|
|
|
|
|
$this->client->on(MsgID::RESENTERHALL, function($binaryData) {
|
|
$this->client->on(MsgID::RESENTERHALL, function($binaryData) {
|