# CreateWebSocketClient()

Creates a websocket client.

**Requires Extension:** [WebSockets Client Extension](https://download.lucee.org/#058215B3-5544-4392-A187A1649EB5CA90)

```
CreateWebSocketClient( endpoint=string, component=component );
```

**Returns:** any

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| endpoint | string | Yes | Endpoint to the websocket (Example: ws://localhost:8080/whatever/) *Alias: url* |  |
| component | component | Yes | componenrt contraining the listener functions. *Alias: cfc, listener* |  |

# Examples

*There are currently no examples for this function*





