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;
}