braverhealth / phoenix-socket-dart

Cross-platform and stream-based implementation of Phoenix Sockets
https://pub.dev/packages/phoenix_socket
BSD 3-Clause "New" or "Revised" License
74 stars 37 forks source link

Add support to dynamic connection params #4

Closed MrYawe closed 3 years ago

MrYawe commented 3 years ago

Phoenix.js support dynamic connection params via a closure : https://github.com/phoenixframework/phoenix/blob/master/assets/js/phoenix.js#L374

This pr adds a Future<Map<String, String>> Function() dynamicParams option to PhoenixSocketOptions.