WampSharp icon indicating copy to clipboard operation
WampSharp copied to clipboard

Ability to pass extra parameters in HELLO message to the server

Open ArtyomShegeda opened this issue 6 years ago • 4 comments

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" }]

ArtyomShegeda avatar Nov 17 '18 22:11 ArtyomShegeda

This is currently not supported.

Elad

darkl avatar Nov 17 '18 23:11 darkl

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

ArtyomShegeda avatar Nov 17 '18 23:11 ArtyomShegeda

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

darkl avatar Nov 17 '18 23:11 darkl

@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?

hawkerm avatar Feb 20 '19 07:02 hawkerm