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 156156// Per message compression extensions (RFC 7692) are experimentally supported
157157// by this package in a limited capacity. Setting the EnableCompression option
158158// 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.
162168//
163169// Per message compression of messages written to a connection can be enabled
164170// or disabled by calling the corresponding Conn method:
165171//
166- // conn.EnableWriteCompression(true )
172+ // conn.EnableWriteCompression(false )
167173//
168174// Currently this package does not support compression with "context takeover".
169175// This means that messages must be compressed and decompressed in isolation,
You can’t perform that action at this time.
0 commit comments