<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Network",
  "identifier" : "/documentation/Network/nw_ws_options_set_client_request_handler(_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Network"
    ],
    "preciseIdentifier" : "c:@F@nw_ws_options_set_client_request_handler"
  },
  "title" : "nw_ws_options_set_client_request_handler(_:_:_:)"
}
-->

# nw_ws_options_set_client_request_handler(_:_:_:)

Sets a handler to react to as a server to inbound WebSocket client handshakes.

```
func nw_ws_options_set_client_request_handler(_ options: nw_protocol_options_t, _ client_queue: dispatch_queue_t, _ handler: @escaping nw_ws_client_request_handler_t)
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)