很简单的问题为什么刚刚连接的客户端没有收到任何消息,但是所有其他客户端都会收到广播?发送连接消息的客户端的正确方法是什么?
protected override void OnConnected(HttpContextBase context,string clientId) { GameAction message = new GameAction(); message.text = "Player connected"; Connection.Broadcast(serializer.Serialize(message)); GameAction gamestate = new GameAction(); gamestate.text = "Some client specific info"; Send(clientId,serializer.Serialize(gamestate)); }