davidstump / SwiftPhoenixClient

Connect your Phoenix and iOS applications through WebSockets!
MIT License
506 stars 146 forks source link

Pass response in `onOpen` callback #242

Closed danielgarbien closed 1 year ago

danielgarbien commented 1 year ago

The response may be useful for the clients for diagnosis and observability. E.g., it enables extracting a Cloudflare Ray id from the HTTP headers.

onOpen methods with no value passed to the callback are preserved for backward compatibility.