I have developed a web application with signal r guiding me from this tutorial: link
It works fine, but in the tutorial the employee ID is not a variable, it is hardcoded in the hub class, I want to be able to pass the client id as a variable since the web application handles users. My question is, how to pass on the side of the javascript client or the server side aspx a value (code of the client that I get with cookies) to the hub class.
I tried using Context.QueryString ["userCode"]; but this works only the first time the hub is called, that is, when the application starts, when I make a change in the database and calls the hub again, the application falls down and says that the user code is null.
Thank you.