Headers
You can get headers passed with the connection on the server-side. Not all clients can set pass in headers, but the JavaScript client and the C# client can set headers that will be accessible on the server.
Get a header value
You can access all headers on the connection from the ConnectionContext
.
var fooValue = this.ConnectionContext.Headers.Get("foo");