public void Run(BrowserHost host, PipeServer server)
 {
     if (buffer != null && buffer.Length > 0)
     {
         //Logr.Log("Send frame");
         server.SendData(PipeProto.BytesToProtoMessage(buffer, PipeProto.OPCODE_FRAME));
     }
 }
Beispiel #2
0
        public void Run(BrowserHost host, PipeServer server)
        {
            string data = "{\"gameObject\" : \"" + gameObject + "\",\"method\" :\"" + method + "\",\"param\" :\"" + param + "\"}";

            server.SendData(PipeProto.BytesToProtoMessage(Encoding.UTF8.GetBytes(data), PipeProto.OPCODE_SCRIPT));
        }