rapid_api v1.0.2 RapidApi.Socket

Summary

Functions

Invoked after the server closes a channel

Invoked after the client has successfully connected to the server

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

Invoked when the process is created

Functions

handle_call(arg, state)
handle_channel_closed(topic, payload, transport, state)

Invoked after the server closes a channel.

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

handle_connected(transport, state)

Invoked after the client has successfully connected to the server.

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

handle_disconnected(reason, state)

Invoked after the client has been disconnected from the server.

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

handle_info(message, transport, state)

Invoked to handle an Erlang message.

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

handle_join_error(topic, payload, transport, state)

Invoked if the server has refused a topic join request.

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

handle_joined(topic, payload, transport, state)

Invoked after the client has successfully joined a topic.

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

handle_message(topic, event, payload, transport, state)

Invoked when a message from the server arrives.

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

handle_reply(topic, ref, payload, transport, state)

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

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

init(list)

Invoked when the process is created.

Callback implementation for Phoenix.Channels.GenSocketClient.init/1.

start_link(token, receiver_pid, params \\ [])