Skip to main content

config

Message Service configuration.

Module

Global variables

  • PRODUCTION_MESSAGE_SERVICE_URL - Production message service URL.

Classes

MessageServiceConfig

class MessageServiceConfig(    url: str = 'messaging.bitfount.com',    port: int = 443,    tls: bool = True,    use_local_storage: bool = False,):

Configuration for the message service.

Arguments

  • url: The URL of the message service. Defaults to PRODUCTION_MESSAGE_SERVICE_URL.
  • port: The port of the message service. Defaults to 443.
  • tls: Whether to use TLS. Defaults to True.
  • use_local_storage: Whether to use local storage instead of communicating via the message service if both parties are on the same device. This can be used to remove the overhead of communication. Defaults to False.

Raises

  • ValueError: If tls is False and url is a Bitfount URL.

Variables

  • static port : int
  • static tls : bool
  • static url : str
  • static use_local_storage : bool
  • stub : [MessageServiceStub](/api/bitfount/federated/transport/protos/messages_pb2_grpc#messageservicestub) - Creates and returns message service stub from this config.