nats-io / nats.swift

Swift client for NATS, the cloud native messaging system.
Apache License 2.0
22 stars 4 forks source link

Fixed websocket path #68

Closed mtmk closed 6 months ago

mtmk commented 6 months ago

Allow path to be passed into websocket connection so that if there is a proxy in between it can be setup with a path on the proxy server even though it doesn't matter for the server connection.

Also there is a future option we can introduce to pass HTTP headers in case application might use them to authenticate with the proxy for example.

Note: this feature was already present in the original websocket-kit code and I chose to simplify it at the time.