WampSharp
WampSharp copied to clipboard
Ability to pass extra parameters in HELLO message to the server
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" }]
This is currently not supported.
Elad
Can it be implemented with custom WampRealmProxyFactory? How is it complex?
I wouldn't recommend it. Besides, most of the properties of HelloDetails are internal so you can't set them without reflection anyway.
@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
?