Ret = {ok, Req, State} | {ok, Req, State, hibernate} | {reply, OutFrame | [OutFrame], Req, State} | {reply, OutFrame | [OutFrame], Req, State, hibernate} | {stop, Req, State} InFrame = {text | binary | ping | pong, binary()} Req = cowboy_req:req() State = any() OutFrame = cow_ws:frame()