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_call(arg1, arg2, peer, state) | The |
handle_message(result, peer, state) | Handle |
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
:details :: map
:arguments :: list
:arguments_kw :: map
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
.
The handle_call
callback is used to send CALL
messages.
Handle RESULT
messages.
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
.