tag:blogger.com,1999:blog-840693053030195964.comments2022-03-05T00:26:03.018-08:00StreamHub Comet BlogStreamHub Teamhttp://www.blogger.com/profile/05639361016094370609noreply@blogger.comBlogger27125tag:blogger.com,1999:blog-840693053030195964.post-18297556621431522672011-02-08T08:02:47.682-08:002011-02-08T08:02:47.682-08:00can any1 send how to send a message to a particula...can any1 send how to send a message to a particular client? plz answer in detail.. i hav read the comment is writn abv bt cant understand how can i the recv id,sender id in chatlistener.java file?<br /><br />help me.!sumonhttps://www.blogger.com/profile/06180911215868769115noreply@blogger.comtag:blogger.com,1999:blog-840693053030195964.post-2610203404785948792010-12-13T14:41:19.910-08:002010-12-13T14:41:19.910-08:00The way you connect changed in 2.1 onwards, those ...The way you connect changed in 2.1 onwards, those demos refer to<br />2.0.x. To get the demo's working with 2.1+ all you need to do is<br />change the connect statements from:<br /><br />hub.connect("http://localhost:7878/");<br /><br />..to:<br /><br />hub.connect("http://localhost:7878/streamhub/"); <br /><br />Also the stock ticker demo will not work unless you change line 16 to:<br /><br />private final Set symbols = new HashSet();luxhttps://www.blogger.com/profile/04269842815588278028noreply@blogger.comtag:blogger.com,1999:blog-840693053030195964.post-44304834961310284352010-08-12T16:06:11.571-07:002010-08-12T16:06:11.571-07:00Hi Aniket,
You can use the Client.send() method t...Hi Aniket,<br /><br />You can use the Client.send() method to send to specific clients. You can get access to the Client objects from the onMessageReceived or onSubscribe listener calls. For more details, refer to the javadoc links below:<br /><br />http://www.stream-hub.com/doc/2.0.15/javadoc/com/streamhub/api/Client.html#send(java.lang.String, com.streamhub.api.Payload)<br /><br />http://www.stream-hub.com/doc/2.0.15/javadoc/com/streamhub/api/PublishListener.html#onMessageReceived(com.streamhub.api.Client, java.lang.String, com.streamhub.api.Payload)<br /><br />http://www.stream-hub.com/doc/2.0.15/javadoc/com/streamhub/api/SubscriptionListener.html#onSubscribe(java.lang.String, com.streamhub.api.Client)StreamHub Teamhttps://www.blogger.com/profile/05639361016094370609noreply@blogger.comtag:blogger.com,1999:blog-840693053030195964.post-70838586816380138532010-08-12T08:16:49.789-07:002010-08-12T08:16:49.789-07:00Hi
Can you tell how to publish message to only spe...Hi<br />Can you tell how to publish message to only specific clients? Currently server.publish(topic, chatMessage) publishes the chat message to all clients. I want the chatMessage to go to only some specific clients. Where do I put this restriction?Aniket Mittalhttps://www.blogger.com/profile/04994603264996180573noreply@blogger.comtag:blogger.com,1999:blog-840693053030195964.post-39804870781050198462009-12-13T11:44:58.305-08:002009-12-13T11:44:58.305-08:00Hi Chris,
The connection listener was not firing i...Hi Chris,<br />The connection listener was not firing in Firefox 2 or 3 in this version when shutting down the server. This should now be fixed in the latest version (2.0.11).StreamHub Teamhttps://www.blogger.com/profile/05639361016094370609noreply@blogger.comtag:blogger.com,1999:blog-840693053030195964.post-11965598827817633012009-12-02T07:47:34.479-08:002009-12-02T07:47:34.479-08:00How is onConnectionLost supposed to work?
I connec...How is onConnectionLost supposed to work?<br />I connect and onConnectionEstablished is called.<br />I shutdown my server and I get nothing.<br />If I run hub.disconnect(), onConnectionEstablished gets called. I would have expected it to be called for any loss of connection to the server.<br />Thanks<br />Chrischu_man_fuhttps://www.blogger.com/profile/06329703500680476620noreply@blogger.comtag:blogger.com,1999:blog-840693053030195964.post-64634524098528347342009-11-26T19:02:06.645-08:002009-11-26T19:02:06.645-08:00@Vivek: If you're having trouble getting start...@Vivek: If you're having trouble getting started, the best place to go for help is the StreamHub Comet Community: http://groups.google.co.uk/group/streamhub-comet-server-communityStreamHub Teamhttps://www.blogger.com/profile/05639361016094370609noreply@blogger.comtag:blogger.com,1999:blog-840693053030195964.post-52761854273540801772009-11-26T19:00:39.773-08:002009-11-26T19:00:39.773-08:00@Vivek: The best place to ask these kind of questi...@Vivek: The best place to ask these kind of questions is in the StreamHub Community Group. http://groups.google.co.uk/group/streamhub-comet-server-communityStreamHub Teamhttps://www.blogger.com/profile/05639361016094370609noreply@blogger.comtag:blogger.com,1999:blog-840693053030195964.post-35434804259757568982009-11-26T18:58:20.567-08:002009-11-26T18:58:20.567-08:00Hi cappadochian, the StreamHub server used to coun...Hi cappadochian, the StreamHub server used to count clients who disconnected recently as part of the max user count, because they are given an amount of time to reconnect if they had lost connection. As of version 2.0.10, these clients will not be counted so you should be able to get a full 10 users out of the community license a lot more easily.StreamHub Teamhttps://www.blogger.com/profile/05639361016094370609noreply@blogger.comtag:blogger.com,1999:blog-840693053030195964.post-54238519794830331592009-11-26T18:55:21.948-08:002009-11-26T18:55:21.948-08:00Hi Su, We have a .NET Streaming Adapter SDK which ...Hi Su, We have a .NET Streaming Adapter SDK which could be exactly what you need to stream data from C#. Please contact us via our website or support@stream-hub.com and we can look into issuing you an academic license.StreamHub Teamhttps://www.blogger.com/profile/05639361016094370609noreply@blogger.comtag:blogger.com,1999:blog-840693053030195964.post-41274994207457887142009-11-21T03:35:58.254-08:002009-11-21T03:35:58.254-08:00Oops, i got it to load the page, but when I type s...Oops, i got it to load the page, but when I type some text and click on chat, what should happen, I don't see anything happening :(Vivekhttps://www.blogger.com/profile/11658883864580564458noreply@blogger.comtag:blogger.com,1999:blog-840693053030195964.post-14261372345701788462009-11-21T03:18:07.923-08:002009-11-21T03:18:07.923-08:00Hi,
When I try to navigate the the URL, I get a 4...Hi,<br /><br />When I try to navigate the the URL, I get a 404, is there any way to resolve this?Vivekhttps://www.blogger.com/profile/11658883864580564458noreply@blogger.comtag:blogger.com,1999:blog-840693053030195964.post-41216510081001731202009-11-21T00:16:17.068-08:002009-11-21T00:16:17.068-08:00Hi,
When I run this application, rather start the...Hi,<br /><br />When I run this application, rather start the server, i get a 404, what am I doing wrong?Vivekhttps://www.blogger.com/profile/11658883864580564458noreply@blogger.comtag:blogger.com,1999:blog-840693053030195964.post-2190835877388927352009-11-13T19:15:52.339-08:002009-11-13T19:15:52.339-08:00Hi,
This clearly explains evreything. This seems ...Hi, <br />This clearly explains evreything. This seems like exacatly the same thing that I have been looking for. But my data streaming source is not written in Java, but in C#. So does it mean that I cannot use the comet server in my application? This is for some academic research work and we cannot afford commercial products.Suhttps://www.blogger.com/profile/13728782453331118041noreply@blogger.comtag:blogger.com,1999:blog-840693053030195964.post-22114281820865375222009-10-13T16:08:19.204-07:002009-10-13T16:08:19.204-07:00Hi, the failover connect method was introduced fro...Hi, the failover connect method was introduced from 1.0.3 onwards. Suggest you download the latest version which is 1.0.4. Available here:<br /><br />http://gwt-comet-streamhub.googlecode.com/files/streamhub-gwt-adapter-1.0.4.jar<br /><br />Documentation:<br /><br />http://www.stream-hub.com/doc/streamhub-gwt-adapter/1.0.4/javadoc/StreamHub Teamhttps://www.blogger.com/profile/05639361016094370609noreply@blogger.comtag:blogger.com,1999:blog-840693053030195964.post-92203015872770421002009-10-13T13:47:11.803-07:002009-10-13T13:47:11.803-07:00The method "streamhub.connect(failoverParamet...The method "streamhub.connect(failoverParameters)" doesn´t exist in version 1.0.2.Can you update this documentation? Thanks.Meu Butiquimhttps://www.blogger.com/profile/06098694510415411968noreply@blogger.comtag:blogger.com,1999:blog-840693053030195964.post-71028922491444306602009-10-03T16:56:52.537-07:002009-10-03T16:56:52.537-07:00StreamHub can support as many users as ephemeral p...StreamHub can support as many users as ephemeral ports are available on the host server, anywhere upto ~64000, although it depends on the update frequency as to how many we would recommend. It will handle 1000 easily for even high update rates. If you get in contact with us directly we can run some benchmarks for you to give you an idea of the CPU & Memory Usage for your estimated update rate and server hardware. <br /><br />Regarding widgets, you may wish to check out some of the recommendations at the end of this article for open-source widgets which support pagination and highlighting. In future we will be releasing a set of widgets and examples to give users more of a jumpstart. Keep an eye on our blog for the latest releases and news.StreamHub Teamhttps://www.blogger.com/profile/05639361016094370609noreply@blogger.comtag:blogger.com,1999:blog-840693053030195964.post-10155619676357785572009-10-03T08:00:25.693-07:002009-10-03T08:00:25.693-07:00Ok thanks. One more thing - how many users can St...Ok thanks. One more thing - how many users can StreamHub handle? I need to be able to support about 1000 users. Are there any widgets I can use teh Jvascript API? - other comet solutions for example have some tables with pagination and highliting built-in to the API.sharpiehttps://www.blogger.com/profile/07232928781960113764noreply@blogger.comtag:blogger.com,1999:blog-840693053030195964.post-53226754848685308142009-10-03T04:59:40.268-07:002009-10-03T04:59:40.268-07:00Hi sharpie,
Yes it is possible. You'll need ...Hi sharpie,<br /><br />Yes it is possible. You'll need to do things slightly differently to this article. Firstly, use one of the overloaded constructor methods <a rel="nofollow">NIOServer(InetAddress, InetAddress)</a> to listen for streaming adapter connections. Then, get yourself a copy of the .NET Adapter SDK for Streaming which will allow you to publish from a .NET adapter instead of Java. Currently, this functionality is only available in the Web and Enterprise editions.StreamHub Teamhttps://www.blogger.com/profile/05639361016094370609noreply@blogger.comtag:blogger.com,1999:blog-840693053030195964.post-64897231791926997152009-10-03T04:38:02.732-07:002009-10-03T04:38:02.732-07:00Hi, I'm trying to get started with streamHub -...Hi, I'm trying to get started with streamHub - is it possible to write the server-side in a different language such as .NET?sharpiehttps://www.blogger.com/profile/07232928781960113764noreply@blogger.comtag:blogger.com,1999:blog-840693053030195964.post-8209671340482639642009-10-01T19:17:53.794-07:002009-10-01T19:17:53.794-07:00And even before Meebo, DivmodNevow did that. Read ...And even before Meebo, DivmodNevow did that. Read more at http://divmod.org/.https://www.blogger.com/profile/05865359955793975265noreply@blogger.comtag:blogger.com,1999:blog-840693053030195964.post-8917458320804999792009-10-01T10:39:36.209-07:002009-10-01T10:39:36.209-07:00Yes, Meebo was one of the first. In fact even bef...Yes, Meebo was one of the first. In fact even before Meebo, Microsoft used Comet in Outlook Web Access.StreamHub Teamhttps://www.blogger.com/profile/05639361016094370609noreply@blogger.comtag:blogger.com,1999:blog-840693053030195964.post-81328075602355414052009-10-01T09:30:22.923-07:002009-10-01T09:30:22.923-07:00you failed to mention Meebo - one of the first pio...you failed to mention Meebo - one of the first pioneers to use Comet - Facebook, GMail etc.. just copied them.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-840693053030195964.post-30045321597131289332009-10-01T09:16:32.013-07:002009-10-01T09:16:32.013-07:00Thanks, nice article - I'd never heard the ter...Thanks, nice article - I'd never heard the term Reverse Ajax before. One problem - the subscribe button didn't seem to work in IE 7 - think IE doesn't like the way you are adding elements to the table.Unknownhttps://www.blogger.com/profile/13802458262713696938noreply@blogger.comtag:blogger.com,1999:blog-840693053030195964.post-18910694947817811832009-09-22T07:03:16.358-07:002009-09-22T07:03:16.358-07:00@dimitar: There are several different mechanisms a...@dimitar: There are several different mechanisms available. StreamHub has sophisticated reconnection and failover features built-in. For a guide on how to use them see the posts on <a href="http://streamhub.blogspot.com/2009/09/configuring-failover-and-reconnection.html" rel="nofollow">Configuring Failover and Reconnection in the JS API</a> and <a href="http://streamhub.blogspot.com/2009/09/comet-in-gwt-with-streamhub-new-release.html" rel="nofollow">New failover features in the GWT Adapter</a>.StreamHub Teamhttps://www.blogger.com/profile/05639361016094370609noreply@blogger.com