/// <summary> /// Registers a callback function to the given method. /// </summary> public void On(string method, OnMethodCallCallbackDelegate callback) { MethodTable[method] = callback; }
public void AddListener(string method, OnMethodCallCallbackDelegate callback) { _hub.On(method, callback); }