Home Reference Source
public class | source

MSend

Message sent when protocolId wishes to send payload. It is a basic encapsualtion of protocolId.

Constructor Summary

Public Constructor
public

constructor(peerId: string, protocolId: string, payload: object)

Member Summary

Public Members
public

payload: *

public

peer: *

public

Public Constructors

public constructor(peerId: string, protocolId: string, payload: object) source

Params:

NameTypeAttributeDescription
peerId string

The identifier of the peer that sent the message

protocolId string

The identifier of the protocol that sent the message

payload object

The payload of the message.

Public Members

public payload: * source

public peer: * source

public type: string source