NetWrok.Connection.Request C# (CSharp) Method

Request() public method

public Request ( string name ) : Request
name string
return Request
        public Request Request(string name, params object[] args)
        {
            var msg = new Message (name, args);
            msg.type = "fn";
            if (SendHook != null)
                SendHook (this, msg);
            var req = new Request (this, msg);
            requests.Add (msg.id, req);
            ws.Send (msg.ToString ());
            return req;
        }