How to use the autobahn.wamp.exportRpc function in autobahn

To help you get started, we’ve selected a few autobahn examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github crossbario / crossbar / v1 / crossbar / adminwebmodule / extdirectremotes.py View on Github external
   @exportRpc("delete-extdirectremote")
   def deleteExtDirectRemote(self, extDirectUri):
      """
      Delete an Ext.Direct remote.
      """
      return self.proto.dbpool.runInteraction(self._deleteExtDirectRemote, extDirectUri)
github crossbario / crossbar / v1 / crossbar / adminwebmodule / servicecontrol.py View on Github external
   @exportRpc("scratch-database")
   def scratchDatabase(self, restart = True):
      self.proto.factory.services["database"].scratchDatabase()
      if restart:
         self.restartHub()
github Kitware / ParaView / Web / Python / paraviewweb_protocols.py View on Github external
    @exportRpc("getWebGLData")
    def getWebGLData(self, view_id, object_id, part):
        view  = self.getView(view_id)
        data = self.getApplication().GetWebGLBinaryData(view.SMProxy, str(object_id), part-1)
        return data
github crossbario / crossbar / v1 / crossbar / adminwebmodule / pgconnects.py View on Github external
   @exportRpc("delete-pgconnect")
   def deletePgConnect(self, pgConnectUri, cascade = False):
      """
      Delete a PostgreSQL database connect.
      """
      return self.proto.dbpool.runInteraction(self._deletePgConnect, pgConnectUri, cascade)
github crossbario / crossbar / v1 / crossbar / netservice / adminwebsocket.py View on Github external
   @exportRpc("get-eula-accepted")
   def getEulaAccepted(self):
      return self.dbpool.runInteraction(self._getEulaAccepted)
github crossbario / crossbar / v1 / crossbar / adminwebmodule / oraremotes.py View on Github external
   @exportRpc("query-oraapi-by-appkey")
   def queryOraApiByAppKey(self, appkey):
      """
      Query Oracle remoted API for authentication key.
      """
      return self.proto.factory.services["oraremoter"].getRemotes(appkey)
github crossbario / crossbar / v1 / crossbar / netservice / adminwebsocket.py View on Github external
   @exportRpc("get-license-options")
   def getLicenseOptions(self):
      return self.factory.services['database'].getLicenseOptions()
github crossbario / crossbar / v1 / crossbar / adminwebmodule / appcreds.py View on Github external
   @exportRpc("modify-appcred")
   def modifyAppCred(self, appCredUri, specDelta):
      """
      Modify existing application credential.

      Parameters:

         appCredUri:          URI or CURIE of application credential to modify.
         specDelta:           Application credential change specification, a dictionary.
         specDelta[]:
            label:            Label, a string, not necessarily unique.
            key:              Key, a string, must be unique.
            secret:           Secret, a string.

      Result:

         {"uri":           ,
github crossbario / crossbar / v1 / crossbar / adminwebmodule / restremotes.py View on Github external
   @exportRpc("create-restremote")
   def createRestRemote(self, spec):
      return self.proto.dbpool.runInteraction(self._createRestRemote, spec)
github richardingham / octopus / octopus / server / server.py View on Github external
	@exportRpc
	def data (self):
		if self.monitor is None:
			raise Exception(BASE + "/error#not_monitoring", "You are not connected to an experiment")

		if len(self.monitor_streams) == 0:
			return None

		# make sure the updates come in consistent steps.
		time_now = now()
		frequency = self.monitor_frequency
		time_now -= time_now % frequency

		# make sure we have a decent time-step (at least one frequency)
		start = self.last_update + frequency 
		interval = time_now - start