Initializer
init(type:identifier:payload:)
Creates a documentation service message.
init(type: DocumentationServer.MessageType, identifier: String = Self.randomIdentifierGenerator(), payload: Data?)
Parameters
typeThe type of the message, which is used to determine which service should process the message.
identifierThe identifier of the message. By default, a random UUID string is created.
payloadThe payload of the message, encoded in the format its handling service expects.