Constructor
new EmcyMessage(args)
- Source:
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
args |
object | arguments. Properties
|
Methods
(static) isMessage(obj) → {boolean}
- Description:
Returns true if the object is an instance of EmcyMessage.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
obj |
object | object to test. |
Returns:
true if obj is an EmcyMessage.
- Type
- boolean
toBuffer() → {Buffer}
- Description:
Convert to a Buffer.
- Source:
Returns:
encoded data.
- Type
- Buffer
toString() → {string}
- Description:
Convert to a string.
- Source:
Returns:
string representation.
- Type
- string