Spell.Role.Caller
The Spell.Role.Caller
module implements the caller behaviour.
Summary↑
call(peer, procedure, options \\ []) | Using |
cast_call(peer, procedure, options \\ []) | Using |
get_features(options) | Callback implementation for |
handle_cast(, , state) | Callback implementation for |
handle_message(result, peer, state) | Callback implementation for |
init(peer_options, options) | Callback implementation for |
on_close(peer, state) | Callback implementation for |
on_open(peer, state) | Callback implementation for |
receive_result(peer, call_id) | Block to receive from |
Functions
Specs:
- call(pid, Spell.Message.wamp_uri, Keyword.t) :: {:ok, integer}
Using peer
synchronously call procedure
with options
.
Options
TODO
Specs:
- cast_call(pid, Spell.Message.wamp_uri, Keyword.t) :: {:ok, integer}
Using peer
asynchronously call procedure
with options
.
Options
See call/3
.
Callback implementation for Spell.Role.get_features/1
.
Callback implementation for Spell.Role.handle_cast/3
.
Callback implementation for Spell.Role.handle_message/3
.
Callback implementation for Spell.Role.init/2
.
Callback implementation for Spell.Role.on_close/2
.
Callback implementation for Spell.Role.on_open/2
.
Block to receive from peer
result of call_id
.