dynamic routing for socket
dynamic call socket method.