View Source cowmachine_websocket_upgrade (cowmachine v1.10.3)

Link to this section Summary

Functions

Upgrade the request to a websocket request

Link to this section Functions

Link to this function

upgrade(Handler, Context)

View Source
-spec upgrade(Handler, Context) -> Result
           when
               Handler :: atom(),
               Context :: cowmachine_req:context(),
               Result :: {ok, cowboy_req:req(), cowboy_middleware:env()}.
Upgrade the request to a websocket request