SubscriptionsTransportWS.Socket.gql_connection_init

You're seeing just the callback gql_connection_init, go back to SubscriptionsTransportWS.Socket module for more information.
Link to this callback

gql_connection_init(connection_params, t)

View Source

Specs

gql_connection_init(connection_params :: map(), t()) ::
  {:ok, t()} | {:error, any()}

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

or similar in other clients.