{gun_ws, ConnPid, StreamRef, Frame} ConnPid :: pid() StreamRef :: reference() Frame :: close | {text | binary | close, binary()} | {close, non_neg_integer(), binary()}
gun_ws - Websocket frame
{gun_ws, ConnPid, StreamRef, Frame} ConnPid :: pid() StreamRef :: reference() Frame :: close | {text | binary | close, binary()} | {close, non_neg_integer(), binary()}
Websocket frame.
This message informs the relevant process that the server sent the enclosed frame.
This message can only be sent on streams that were upgraded to the Websocket protocol.
The pid of the Gun connection process.
Identifier of the stream that was upgraded to Websocket.
The Websocket frame in question.
handle_info({gun_ws, ConnPid, _StreamRef, _Frame}, State=#state{conn_pid=ConnPid}) -> %% Do something. {noreply, State}.