locked
Querystring parameters from Android Client RRS feed

  • Question

  • User-2064375828 posted

    How to send querystring parameters from Android Client and receive them at hub "OnConnected" method

    I can receive Querystring parameters send from Javascript client using following code

    var myHubProxy = $.connection.myHub;
    $.connection.hub.qs = { "param1": "value1", "param2": "value2" };

    OnConnected 

    string param1Value = Context.Request.QueryString["param1"];
    string param2Value = Context.Request.QueryString["param2"];

    How to send the same parameters from Android signal r client and receive at onConnected method ? 

    Any Help or

    alternate way (like json) to send data before connection would be appreciated.

    Friday, July 14, 2017 9:48 AM

All replies

  • User-1838255255 posted

    Hi asimjabbar,

    According to your description, I found a document about how to call signalr from Java client.

    Getting started with the Java SignalR SDK:

    https://whathecode.wordpress.com/2014/03/20/getting-started-with-the-java-signalr-sdk/ 

    Best Regards,

    Eric Du

    Monday, July 17, 2017 9:59 AM
  • User-2064375828 posted

    Thanks Eric

    I can call signalr from Java client.

    But I want to Map Android client to signalR Connections.

    May be through query-string parameters during hub proxy connections or via post data.

    Any working code will be helpful

    Best Regards,

    Asim J

    Tuesday, July 18, 2017 4:47 AM