Pass remoteSocket to invoke() calls.