示例#1
0
        public void InitSocketManager(ISocketManager socketManager)
        {
            Socket           = socketManager.Create("http://192.168.1.3:3000/");
            Socket.OnConnect = () =>
            {
                Socket.Emit("shoes2", new { F**k = "Yopu" });
            };
            Socket.On <Boo>("shoes", a =>
            {
            });
            Socket.On <Boo>("shoes3", a =>
            {
            });

            Socket.Connect();
        }
示例#2
0
 private static void lobby_SocketConnected(object[] obj)
 {
     Lobby_SocketConnected?.Invoke(null, new EventArgs());
     Socket.Emit("enterLobby");
 }