|
287 | 287 | | `ssl-context` | an `io.netty.handler.ssl.SslContext` object, only required if a custom context is required
|
288 | 288 | | `ssl-endpoint-id-alg` | the name of the algorithm to use for SSL endpoint identification (see https://docs.oracle.com/en/java/javase/17/docs/specs/security/standard-names.html#endpoint-identification-algorithms), defaults to \"HTTPS\". Only used for WSS connections. Pass `nil` to disable endpoint identification.
|
289 | 289 | | `extensions?` | if `true`, the websocket extensions will be supported.
|
290 |
| - | `sub-protocols` | a string with a comma seperated list of supported sub-protocols. |
| 290 | + | `sub-protocols` | a string with a comma separated list of supported sub-protocols. |
291 | 291 | | `headers` | the headers that should be included in the handshake
|
292 | 292 | | `compression?` | when set to `true`, enables client to use permessage-deflate compression extension, defaults to `false`.
|
293 | 293 | | `pipeline-transform` | an optional function that takes an `io.netty.channel.ChannelPipeline` object, which represents a connection, and modifies it.
|
|
311 | 311 | | --- | ---
|
312 | 312 | | `raw-stream?` | if `true`, the connection will emit raw `io.netty.buffer.ByteBuf` objects rather than strings or byte-arrays. This will minimize copying, but means that care must be taken with Netty's buffer reference counting. Only recommended for advanced users.
|
313 | 313 | | `headers` | the headers that should be included in the handshake
|
314 |
| - | `compression?` | when set to `true`, enables permessage-deflate compression extention support for the connection, defaults to `false`. |
| 314 | + | `compression?` | when set to `true`, enables permessage-deflate compression extension support for the connection, defaults to `false`. |
315 | 315 | | `pipeline-transform` | an optional function that takes an `io.netty.channel.ChannelPipeline` object, which represents a connection, and modifies it.
|
316 | 316 | | `max-frame-payload` | maximum allowable frame payload length, in bytes, defaults to `65536`.
|
317 | 317 | | `max-frame-size` | maximum aggregate message size, in bytes, defaults to `1048576`.
|
|
325 | 325 | (defn websocket-ping
|
326 | 326 | "Takes a websocket endpoint (either client or server) and returns a deferred that will
|
327 | 327 | yield true whenever the PONG comes back, or false if the connection is closed. Subsequent
|
328 |
| - PINGs are supressed to avoid ambiguity in a way that the next PONG trigger all pending PINGs." |
| 328 | + PINGs are suppressed to avoid ambiguity in a way that the next PONG trigger all pending PINGs." |
329 | 329 | ([conn]
|
330 | 330 | (ws.common/websocket-ping conn (d/deferred) nil))
|
331 | 331 | ([conn d']
|
|
0 commit comments