new Message(propertiesopt)
Jupyter message
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
properties |
<optional> |
Message properties
Properties
|
Members
buffers :Array
Unparsed JMP message frames (any frames after content)
Type:
- Array
content :Object
Type:
- Object
header :Object
Type:
- Object
idents :Array
ZMQ identities
Type:
- Array
metadata :Object
Type:
- Object
parent_header :Object
Type:
- Object
Methods
(protected, static) _decode(messageFrames, schemeopt, keyopt) → (nullable) {module:jmp~Message}
Decode message received over a ZMQ socket
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
messageFrames |
argsArray | argsArray of a message listener on a JMP socket | ||
scheme |
String |
<optional> |
sha256 | Hashing scheme |
key |
String |
<optional> |
"" | Hashing key |
Returns:
JMP message or `null` if failed to decode
- Type
- module:jmp~Message
(protected) _encode(schemeopt, keyopt) → {Array}
Encode message for transfer over a ZMQ socket
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
scheme |
String |
<optional> |
sha256 | Hashing scheme |
key |
String |
<optional> |
"" | Hashing key |
Returns:
Encoded message
- Type
- Array
respond(socket, messageType, contentopt, metadataopt, protocolVersionopt) → {module:jmp~Message}
Send a response over a given socket
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
socket |
module:zmq~Socket | Socket over which the response is sent | |
messageType |
String | Jupyter response message type | |
content |
Object |
<optional> |
Jupyter response content |
metadata |
Object |
<optional> |
Jupyter response metadata |
protocolVersion |
String |
<optional> |
Jupyter protocol version |
Returns:
The response message sent over the given socket
- Type
- module:jmp~Message