florianmari / LiveGQL

Use GraphQL Subscriptions on iOS :ok_hand:
MIT License
83 stars 11 forks source link

Add support for payload on init #3

Closed sciutand closed 7 years ago

sciutand commented 7 years ago

When connecting to a socket often we need to have some sort of authentication. The javascript client allows for connection parameters to be sent over to perform authentication. http://dev.apollodata.com/tools/graphql-subscriptions/authentication.html

I think it would be good if the iOS client would allow similar option. Send payload in initServer function?

florianmari commented 7 years ago

Hello,

Thank you for theses informations, of course it would be good to have this option! I'm gonna improve the library by the end of week and hopefully integrate this option in the next update around next week!

Cheers

florianmari commented 7 years ago

Hello, @sciutand I'm working on a new update so this feature will be available next week 👍