on abstract method
Registers a handler that will be invoked when the hub method with the specified method name is invoked.
methodName
The name of the hub method to define.
newMethod
The handler that will be raised when the hub method is invoked.
Implementation
void on(String methodName, void Function(List<dynamic> args) newMethod);