If you send a message it must not contain a newline but the message must be terminated by a newline.

interface IdMessageBase {
    id: undefined | string;
    type: string;
}

Hierarchy (view full)

Hierarchy-Diagram

UML class diagram of IdMessageBase

Properties

Properties

id: undefined | string

The id that links a request with its responses, it is up to the calling client to make sure it is unique. However, the client does not have to pass the id if it does not need to link the request with its response. The id is always undefined if the message is unprompted (e.g., with hello) or the id unknown.

type: string

The at this time unknown type