Initializer
init(type:clientName:payload:)
Creates a documentation service message.
init(type: DocumentationServer.MessageType, clientName: String, payload: Data?)
Parameters
typeThe type of the message, which is used to determine which service should process the message.
clientNameThe name of the client creating this message, which this initializer uses as a prefix for the message’s identifier.
payloadThe payload of the message, encoded in the format its handling service expects.