javascript - Moving SignalR object between HTML pages -


i use signalr on javascript.

i have 2 objects: connection object , hub proxy object:

 var connection = $.hubconnection();  connection.url = 'http://localhost:xxx/signalr';  var contosochathubproxy = connection.createhubproxy('chathub'); 

i want these 2 objects recognized in html pages, tried put them in sessionstorage had convert them json:

 sessionstorage["connection"]= json.stringify(connection);  sessionstorage["proxyhub"]= json.stringify(contosochathubproxy); 

i got following error:

"converting circular structure json" 

i found information in several places, , everywhere written should determine real object.

the question real object?

below there picture of connection object console:

enter image description here

or there way pass object between pages without converting it? (without cookies)

a new page requires new connection. love proven wrong.


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -