Skip to content

Commit

Permalink
Turn on per message compression in websockets
Browse files Browse the repository at this point in the history
  • Loading branch information
mmzeeman committed Oct 11, 2021
1 parent 4d92488 commit 08205bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cowmachine_websocket_upgrade.erl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ upgrade(Handler, Context) ->
Req = cowmachine_req:req(Context),
Env = cowmachine_req:env(Context),
Opts = #{
idle_timeout => infinity
idle_timeout => infinity,
compress => true
},

% Ensure the handler module is loaded. Cowboy uses erlang:function_exported/3 to
Expand Down

0 comments on commit 08205bd

Please sign in to comment.