Example #1
0
    }                                 // an outbound buffer we want to send over the websocket.byte

    void MsgHandler(object sender, WebSocketSharpUnityMod.MessageEventArgs e)
    {
        TransferData Datum = TransferData.Empty();

        if (e.IsBinary)
        {
            Datum.FromCloud(e.RawData);
        }

        // Handle the datum

        if (Datum.TypeOfByte == ByteCodes.sound)
        {
            Scene.ForwardClipForPlay(Datum.SoundData);
        }
        //System.Console.WriteLine(e.Data.ToString());
    }