Stubbing client for making RPC calls over SockJS