I set environment that Push Server update web page when data updates.
I run Push Server and subscribe client. After serveral hours, udating
is stopped.
This is log.
.....
17:08:52,531 - INFO com.streamhub.client.StreamingClient -
Client-1266991314156 lost connection
17:15:52,531 - INFO com.streamhub.StreamingSubscriptionManager -
Client-1266991314156 subscriptions removed
.....
'lost connection' means session timeout?
One more..question..
I want to two updating objects that has other contents and other
purpose.
ex>
var hub = new StreamHub();
hub.connect("http://localhost:7979");
hub.subscribe(symbols, updateListener);
hub.subscribe(symbols2, updateListener2);
Is it possible to subscribe multiply?
Please advise me.
'lost connection' means the client lost connectivity to the StreamHub
server, for example, they lost their internet connection. If they
deliberately disconnected the message is different. If you want to
diagnose why the client lost connection you will need to configure a
client-side logger, see the method you'll need below:
http://www.stream-hub.com/doc/2.0.14/jsdoc/symbols/StreamHub.html#setLogger
As to your other question:
> I want to two updating objects that has other contents and other
> purpose.
>
> ex>
> var hub = new StreamHub();
>
> hub.connect("http://localhost:7979");
>
> hub.subscribe(symbols, updateListener);
>
> hub.subscribe(symbols2, updateListener2);
>
> Is it possible to subscribe multiply?
Yes, this should be fine. If you hit any problems, some full example
code would help us diagnose the issue. Also, try the client-side
logger we recommended above.
Hope this helps,
The StreamHub Team