Base function websocket rpc provider