File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 156
156
// Per message compression extensions (RFC 7692) are experimentally supported
157
157
// by this package in a limited capacity. Setting the EnableCompression option
158
158
// to true in Dialer or Upgrader will attempt to negotiate per message deflate
159
- // support. If compression was successfully negotiated with the connection's
160
- // peer, any message received in compressed form will be automatically
161
- // decompressed. All Read methods will return uncompressed bytes.
159
+ // support.
160
+ //
161
+ // var upgrader = websocket.Upgrader{
162
+ // EnableCompression: true,
163
+ // }
164
+ //
165
+ // If compression was successfully negotiated with the connection's peer, any
166
+ // message received in compressed form will be automatically decompressed.
167
+ // All Read methods will return uncompressed bytes.
162
168
//
163
169
// Per message compression of messages written to a connection can be enabled
164
170
// or disabled by calling the corresponding Conn method:
165
171
//
166
- // conn.EnableWriteCompression(true )
172
+ // conn.EnableWriteCompression(false )
167
173
//
168
174
// Currently this package does not support compression with "context takeover".
169
175
// This means that messages must be compressed and decompressed in isolation,
You can’t perform that action at this time.
0 commit comments