code: def register(self, endpoint, procedure=None, options=None):
          
          def proxy_endpoint(*args, **kwargs):
              return self._callbacks_runner.put(partial(endpoint, *args, **kwargs))
          return self._async_session.register(proxy_endpoint, procedure=procedure, options=options)
docs: Register a procedure for remote calling.
  
          Replace :meth:`autobahn.wamp.interface.IApplicationSession.register`