comet

Spring Webflow , Primefaces with Comet (Atmosphere)

女生的网名这么多〃 提交于 2019-12-03 21:39:54
Thinking to start a project using Spring Web Flow with Primefaces. I need to use comet so i figured Primefaces uses Atmosphere. I'm not really experienced with the Atmosphere / Comet business so any pointers about where to start is welcomed. Thanks in Advance Jens a very basic example can be found in the primefaces showcase: https://www.primefaces.org/showcase/push/chat.xhtml This is the old example for the ajax push component and is NOT officially included in the show case right now because it will be redone in primefaces 3 if I know right. In addition to that you have to configure the comet

Implementing long-polling with jQuery and PHP

只谈情不闲聊 提交于 2019-12-03 20:27:17
问题 I want to build a chat, based on JavaScript (jQuery will be used for AJAX) and PHP. I've heard a good way of doing this is to use long-polling. I do understand the idea, but I don't know how to implement it on the server side. An infinite loop sounds like a bad idea. 回答1: You don't want to create an infinite loop, but you can set a timeout. Basically loop for X second waiting for some sort of data, and if that doesn't happen send a response to the client telling it that it needs to initiate a

Options for real-time web notifications and updates using Comet/XMPP vs WebSocket technologies on a Microsoft stack?

泪湿孤枕 提交于 2019-12-03 19:28:32
问题 I am scoping out the architectural options for a project that will render live updates (like Facebook) of user activities - logins, photos, etc. Two main UI components of this are an auto-updating scrolling area where new notifications will be listed (photos, etc.), and a toolbar that will update with things like updated message counts, etc. The contenders for this are Jabber/Comet/XMPP-based and WebSocket technologies. Comet camp: Pokein WebSync WebSockets camp: Kaazing LightStreamer

Best solution for Java HTTP push (messaging) [closed]

女生的网名这么多〃 提交于 2019-12-03 19:22:49
问题 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 6 years ago . We want to push data from a server to clients but can only use HTTP (port 80). What is the best solution for messaging? One idea is Comet. Are there other ideas or frameworks which offer lets say JMS over HTTP. (Yes, ActiveMQ supports it too, but waggly IMHO. And JXTA supports it too but the configuration is

JSONP Long Polling always loading

你说的曾经没有我的故事 提交于 2019-12-03 17:25:59
I'm doing long-polling with JSONP and firefox continually pops up the "Loading" spinner making the page seem like it hasn't finished loading. Is there a way to suppress this? I've been told that the Orbited team has hacks for suppressing this, but looking through the Orbited.js code I cannot figure out what they are. Any help would be greatly appreciated. This is a simple fix.. All you have to do is start your polling request with a setTimeout.. Here is some code I use.. It uses jQuery, but I assume you can figure out what you need to and use your library to do the same. <script type="text

How does Google Analytics Real Time work?

佐手、 提交于 2019-12-03 14:29:26
I'm wondering how Google Analytics Real Time user interface works, what's the technique ? Do they use long-polling from the client to keep the UI statistics instantly up to date by delivering realtime information from the server to the client? I just open Chrome dev tool on network tab and there is a infinite request on https://www.google.com/analytics/realtime/bind Does anybody know the trick? It works flawless... The below refers to how the real time data is collected, not how the UI updates. (It looks like the UI is just using AJAX polling on the client-side, though) No special polling or

PHP + Comet (long-polling) scaling / hosts

不羁岁月 提交于 2019-12-03 14:25:23
I have developped an application using PHP/MySQL which used comet technology, presicely long-polling. The proof of concept works great, but I am expecting traffic to quickly reach thousands of simultanous connections = thousands of open connections on the webserver. I do not have the ability to setup my own server (e.g. using lighttpd), and usually rely on simple 5$/month PHP hostings for other web projects. However, I realize those won't do the trick as they are not meant to support such a high number of simultanous open connections. What are my other options? I could not find any host

Storing User On Login then Pushing Data On Demand

给你一囗甜甜゛ 提交于 2019-12-03 14:11:04
问题 So I'm using SignalR, it's setup and working correctly on my Website. Let's suppose user A logs in (I am using the Membership API). When A logs in I am calling the connection from .js located in my masterpage. That will assign this use a specific userId. Let's say now user B logs in goes does some event and that event needs to notify user A from codebehind. So what I am trying to do here is notify user B of use A's action from CodeBehind. How will user B know user A's ID and how does the

AJAX/Reverse AJAX: Polling or Push?

依然范特西╮ 提交于 2019-12-03 13:50:21
Been studying a ton on AJAX because I'm making a real-time application out of Javascript and PHP. It needs to be able to update without refreshing the page and in real-time. I tried polling the server with setInterval() but for it to be quick I had to have it every second. It seems to be using a ton of bandwidth though. It does work however and I have a plan with my hosting provider for 'unlimited bandwidth'. It seems like a lot of stress on the site though so I wanted to use a Push technology. Learning how to setup Push was extremely difficult. From what I managed to figure out, you have to

Comet, Ajax Push, Reverse Ajax

℡╲_俬逩灬. 提交于 2019-12-03 13:07:35
问题 Someone have any sample of Comet app .net? I need one sample how to persist connection of client in server? 回答1: Here are some good ones too: http://www.frozenmountain.com/websync/demos 回答2: Here are two nice and scalabe examples: example 1 example 2 Update Be sure to take a look at SignalR 回答3: There are many sample projects for ASP.NET HERE 来源: https://stackoverflow.com/questions/2601893/comet-ajax-push-reverse-ajax