Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to pass extra parameters in HELLO message to the server #280

Open
ArtyomShegeda opened this issue Nov 17, 2018 · 4 comments
Open

Comments

@ArtyomShegeda
Copy link

Is it possible to pass extra data from client to the server in HELLO message? I need to send other than standard "roles". Third party server accepts HELLO message that looks like this:
[1,"",{ "roles":{ "publisher":{}, "subscriber":{}, "caller":{} }, "user_id":123456789, "security_token":"987654321", "language":"en", "country":"US", "platform":"android" }]

@darkl
Copy link
Member

darkl commented Nov 17, 2018 via email

@ArtyomShegeda
Copy link
Author

ArtyomShegeda commented Nov 17, 2018

Can it be implemented with custom WampRealmProxyFactory?
How is it complex?

@darkl
Copy link
Member

darkl commented Nov 17, 2018

I wouldn't recommend it. Besides, most of the properties of HelloDetails are internal so you can't set them without reflection anyway.

@hawkerm
Copy link

hawkerm commented Feb 20, 2019

@darkl I noticed the FleckTransportDetails is internal as well, so it makes it hard to retrieve information about the incoming connection. Is there another way to inspect this data to retrieve values like Peer and Headers?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants