Yatapp v0.1.1 Yatapp.SocketClient View Source

Connects to Yata socket server and translation channel.

Link to this section Summary

Functions

Invoked to handle a synchronous call

Invoked after the server closes a channel

Connects to channel and initialize an ets table

Invoked after the client has been disconnected from the server

Invoked to handle an Erlang message

Invoked if the server has refused a topic join request

Invoked after the client has successfully joined a topic

Invoked when a message from the server arrives

Invoked when the server replies to a message sent by the client

Connects to external websocket server

Starts a socket client

Link to this section Functions

Link to this function handle_call(message, transport, from, state) View Source

Invoked to handle a synchronous call.

Callback implementation for Phoenix.Channels.GenSocketClient.handle_call/4.

Link to this function handle_channel_closed(topic, payload, transport, state) View Source

Invoked after the server closes a channel.

Callback implementation for Phoenix.Channels.GenSocketClient.handle_channel_closed/4.

Link to this function handle_connected(transport, state) View Source

Connects to channel and initialize an ets table.

Link to this function handle_disconnected(reason, state) View Source

Invoked after the client has been disconnected from the server.

Callback implementation for Phoenix.Channels.GenSocketClient.handle_disconnected/2.

Link to this function handle_info(message, transport, state) View Source

Invoked to handle an Erlang message.

Callback implementation for Phoenix.Channels.GenSocketClient.handle_info/3.

Link to this function handle_join_error(topic, payload, transport, state) View Source

Invoked if the server has refused a topic join request.

Callback implementation for Phoenix.Channels.GenSocketClient.handle_join_error/4.

Link to this function handle_joined(topic, payload, transport, state) View Source

Invoked after the client has successfully joined a topic.

Callback implementation for Phoenix.Channels.GenSocketClient.handle_joined/4.

Link to this function handle_message(topic, event, payload, transport, state) View Source

Invoked when a message from the server arrives.

Callback implementation for Phoenix.Channels.GenSocketClient.handle_message/5.

Link to this function handle_reply(topic, ref, payload, transport, state) View Source

Invoked when the server replies to a message sent by the client.

Callback implementation for Phoenix.Channels.GenSocketClient.handle_reply/5.

Connects to external websocket server.

Starts a socket client.