UNPKG

matssocket

Version:
66 lines 2.44 kB
/** * Meta-information for the call, availability depends on the allowed debug options for the authenticated user, * and which information is requested in client. Notice that Client side and Server side might have wildly differing * ideas of what the time is, which means that timestamps comparison between Server and Client must be evaluated * with massive interpretation. * * @class */ export function DebugInformation(clientMessageSent: any, requestedDebugOptions: any, envelope: any, receivedTimestamp: any): void; export class DebugInformation { /** * Meta-information for the call, availability depends on the allowed debug options for the authenticated user, * and which information is requested in client. Notice that Client side and Server side might have wildly differing * ideas of what the time is, which means that timestamps comparison between Server and Client must be evaluated * with massive interpretation. * * @class */ constructor(clientMessageSent: any, requestedDebugOptions: any, envelope: any, receivedTimestamp: any); /** * From client: When the message was sent, millis-from-epoch. * @type {number} */ clientMessageSent: number; /** * From client: What {@link DebugOption}s (bitfield) was requested by the client of when message was sent. * @type {number} */ requestedDebugOptions: number; /** * From server: Description if anything didn't go as expected. * @type {string} */ description: string; /** * From server: What {@link DebugOption}s (bitfield) was resolved/given by the server, based on the * {@link DebugInformation#requestedDebugOptions} and authorization. * @type {number} */ resolvedDebugOptions: number; /** * From server, only if debug: * @type {number} */ clientMessageReceived: number; clientMessageReceivedNodename: any; matsMessageSent: any; matsMessageReplyReceived: any; matsMessageReplyReceivedNodename: any; serverMessageCreated: any; serverMessageCreatedNodename: any; messageSentToClient: any; messageSentToClientNodename: any; messageReceived: any; } /** * * */ export type DebugOption = string; export namespace DebugOption { let TIMESTAMPS: number; let NODES: number; let CUSTOM_A: number; let CUSTOM_B: number; } //# sourceMappingURL=DebugInformation.d.ts.map