submarine v0.0.2 Submarine
Documentation for Submarine.
Link to this section Summary
Functions
gets the server from the agent
reacts with callback after receiving message
publish to server
loop for subscribing and publishing messages
starts the pub/sub server
subscribe to server without identifier
subscribe to server with identifier
unsubscribe from server
Link to this section Functions
Link to this function
get_server()
gets the server from the agent
Link to this function
identify(pid, id)
Link to this function
listen(callback)
reacts with callback after receiving message
Link to this function
publish(pid, msg)
publish to server
Link to this function
run(subs)
loop for subscribing and publishing messages
Link to this function
start_link(opts)
starts the pub/sub server
Link to this function
subscribe(pid, handler)
subscribe to server without identifier
Link to this function
subscribe(pid, id, handler)
subscribe to server with identifier
Link to this function
unsubscribe(pid)
unsubscribe from server