How to use the crossbar.bridge.mqtt._utils.build_header function in crossbar

To help you get started, we’ve selected a few crossbar 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 / crossbar / bridge / mqtt / _events.py View on Github external
def serialise(self):
        """
        Assemble this into an on-wire message.
        """
        return build_header(13, (False, False, False, False), 0)
github crossbario / crossbar / crossbar / bridge / mqtt / _events.py View on Github external
def serialise(self):
        """
        Assemble this into an on-wire message.
        """
        payload = self._make_payload()
        header = build_header(8, (False, False, True, False), len(payload))

        return header + payload
github crossbario / crossbar / crossbar / bridge / mqtt / _events.py View on Github external
def serialise(self):
        """
        Assemble this into an on-wire message.
        """
        payload = self._make_payload()
        header = build_header(11, (False, False, False, False), len(payload))

        return header + payload
github crossbario / crossbar / crossbar / bridge / mqtt / _events.py View on Github external
def serialise(self):
        """
        Assemble this into an on-wire message.
        """
        payload = self._make_payload()
        header = build_header(1, (False, False, False, False), len(payload))

        return header + payload
github crossbario / crossbar / crossbar / bridge / mqtt / _events.py View on Github external
def serialise(self):
        """
        Assemble this into an on-wire message.
        """
        payload = self._make_payload()
        header = build_header(4, (False, False, False, False), len(payload))
        return header + payload
github crossbario / crossbar / crossbar / bridge / mqtt / _events.py View on Github external
def serialise(self):
        """
        Assemble this into an on-wire message.
        """
        payload = self._make_payload()
        header = build_header(6, (False, False, True, False), len(payload))
        return header + payload
github crossbario / crossbar / crossbar / bridge / mqtt / _events.py View on Github external
def serialise(self):
        """
        Assemble this into an on-wire message.
        """
        return build_header(14, (False, False, False, False), 0)
github crossbario / crossbar / crossbar / bridge / mqtt / _events.py View on Github external
def serialise(self):
        """
        Assemble this into an on-wire message.
        """
        payload = self._make_payload()
        header = build_header(5, (False, False, False, False), len(payload))
        return header + payload
github crossbario / crossbar / crossbar / bridge / mqtt / _events.py View on Github external
def serialise(self):
        """
        Assemble this into an on-wire message.
        """
        payload = self._make_payload()
        header = build_header(2, (False, False, False, False), len(payload))

        return header + payload
github crossbario / crossbar / crossbar / bridge / mqtt / _events.py View on Github external
def serialise(self):
        """
        Assemble this into an on-wire message.
        """
        payload = self._make_payload()
        header = build_header(10, (False, False, True, False), len(payload))

        return header + payload