comet

Scaling Microsoft's ASP.NET Reverse AJAX “long poll” codeplex example

丶灬走出姿态 提交于 2019-12-06 15:40:33
I'm investigating Microsoft's reverse-AJAX sample wherein they use a long timeout in the ScriptManager <asp:ScriptManager ID="ScriptManager1" runat="server" AsyncPostBackTimeout="2147483647"> And a ManualResetEvent to control the wait: private ManualResetEvent messageEvent = new ManualResetEvent(false); public Message DequeueMessage() { // Wait until a new message. messageEvent.WaitOne(); } public void EnqueueMessage(Message message) { lock (messageQueue) { messageQueue.Enqueue(message); // Set a new message event. messageEvent.Set(); } } I've noticed that Setting AsyncPostBackTimeout to a low

Python + comet + web (chat) - I need working(!) library/server

你离开我真会死。 提交于 2019-12-06 14:08:15
问题 I need working (cross-browser) project (library/server) to build web-chat in comet technology. There are: orbited, orbited2, hookbox, but it seems that are no longer developed (also projects sites are down) and have a lot of bugs. Any ideas? Thanks for help! 回答1: Have a look at Tornado a simple non-blocking webserver written in Python by the facebook team. The comet behavior can be done with tornadio which makes possible to use socket.io javascript lib with tornado. There is a chat example in

Cometd with glassfish

有些话、适合烂在心里 提交于 2019-12-06 13:49:15
问题 I have been trying tp get cometd http://cometd.org/ to work with glassfish server, but I couldn't run the chat sample, seems I'm missing some libraries I found this in the glassish documentation http://docs.sun.com/app/docs/doc/820-4496/ggrgt?a=view But this doesn't give much, no subscribe and publish as found in Cometd example with Jetty, just long polling If I'm using cometd, must I use jetty server ? 回答1: Don't know if you had any luck with this in the last 6 month, but I came across the

Stop browser throbber spinning for Comet using iframe

旧街凉风 提交于 2019-12-06 11:38:06
When I use comet using iframe push, the browser throbber will keep spinning forever while the data is being pushed through the iframe. Lightstreamer is also using iframe, but how do they manage to make it stop? I found a similar post here but it doesn't seem to solve my problem. Any explanation on how lightstreamer works would greatly appreciately. Thank you. I wrote a post about this at http://www.shanison.com/2010/05/10/stop-the-browser-%E2%80%9Cthrobber-of-doom%E2%80%9D-while-loading-comet-forever-iframe/ Below are summary solutions for different browsers: 1. Firefox In firefox, before you

Are there any good open-sourced comet web servers for ASP.NET MVC applications?

我是研究僧i 提交于 2019-12-06 11:18:12
I'm looking for one that can be used to handle many long poll clients and does not create a thread for each request. Each call to IIS (ASP.NET) page works on its own thread. A good library should not create some extra threads. So, I'm using PokeIn inside my solution(online learning) and it doesnt create extra threads. It has a free community edition but not an open source :( you can check the source code for Pokein here edit It seems that the latest source available isn't that up to date, my bad. Check out their website instead. I've been using it 来源: https://stackoverflow.com/questions

CometD publish a message back to a client

无人久伴 提交于 2019-12-06 11:15:52
问题 I am having a problem in sending back a message to a client. Below is my code JavaScript dojox.cometd.publish('/service/getservice', { userid : _USERID, }); dojox.cometd.subscribe('/service/getservice', function( message) { alert("abc"); alert(message.data.test); }); Configuration Servlet bayeux.createIfAbsent("/service/getservice", new ConfigurableServerChannel.Initializer() { @Override public void configureChannel(ConfigurableServerChannel channel) { channel.setPersistent(true); GetListener

Looking for Comet-Style server or client [closed]

*爱你&永不变心* 提交于 2019-12-06 09:38:12
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I'm looking for a good and simple way to notify my clients about some events in a "push"-way, just like the Comet/Long-Polling server do. The main idea was to set-up a server and create an app with C# which will act as a client. I've found a good thing, Comet server (currently NGINX with http_push module). But

Broadcasting to a subset of subscribers in Atmosphere

社会主义新天地 提交于 2019-12-06 09:32:09
问题 What I'm trying to do: Be able to have users subscribed to a number of different 'chat rooms' and use reverse AJAX / comet to send messages from a chat room to everyone logged into that room. (a bit more complicated but this is a similar use case). What I'm doing: Using Grails with JMS and Atmosphere. When a message is sent, I'm using JMS to send the message object which is received by a Grails service which is then broadcasted to the atmosphere URL (i.e. atmosphere/messages). Obviously JMS

Basic use of gwt-comet for GWT

假装没事ソ 提交于 2019-12-06 08:01:07
问题 I'm trying out the gwt-comet extension here. I cant get any messages from the server to the client. I have a basic GWT application with a RPC service implementation. Client: MockGui.java public class MockGui implements EntryPoint { @SerialTypes({ Message.class }) public static abstract class MyMessageSerializer extends CometSerializer { } public void onModuleLoad() { ... goServer(); } public void goServer() { GreetingServiceAsync service = GWT.create(GreetingService.class); service

.NET Comet engine

冷暖自知 提交于 2019-12-06 06:33:28
问题 is there a .net based comet engine? like Ajax Push Engine that is free and open source? 回答1: Orbited Orbited is an HTTP daemon that is optimized for long-lasting comet connections. It is designed to be easily integrated with new and existing applications. Orbited allows you to write real-time web applications, such as a chat room or instant messaging client, without using any external plugins like Flash or Java. It can be installed as a windows service. The license is MIT. MethodWorx