SubscriptionsTransportWS.Socket.gql_connection_init
You're seeing just the callback
gql_connection_init
, go back to SubscriptionsTransportWS.Socket module for more information.
Specs
Callback for the connection_init
message.
The client sends this message after plain websocket connection to start
the communication with the server.
In the subscriptions-transport-ws
protocol this is usually used to
set the user on the socket.
Should return {:ok, socket}
on success, and {:error, payload}
to deny.
Receives the a map of connection_params
, see
- connectionParams in Apollo javascript client
- connectingPayload in Apollo iOS client
or similar in other clients.