Nile offers two communcation protocols:
- websockets
- http
- Channel: specifies who is communicating with whom
- websockets: it is rappresented by the name of the event
- syntax: "sender.to.recipient"
ws.emit("node.to.client", {}})
- http: it is rappresented by the path
- syntax: "sender.to.recipient"
http://localinstance/node/to/client
- websockets: it is rappresented by the name of the event
- Properties (JSON): The properties of the channel
- instance.to.node, instance/to/node:
- action: the called action
- parameters: the properties of the action
- instance.to.client:
- action: the called action
- parameters: the properties of the action
- instance.to.client.from.node
- response: the response
- sender: the node id
- instance.to.node.from.client
- response: the response
- sender: the node id
- node.to.instance, /node/to/instance:
- action: the called action
- parameters: the properties of the action
- node.to.instance.for.client
- response: the response
- recipient: the client id
- client.to.instance
- action: the called action
- parameters: the properties of the action
- client.to.instance.for.node
- response: the response
- sender: the node id
- instance.to.node, instance/to/node:
On the next page you can read more about the node management.
Please {% github_edit_link "help improve this page" %}.