Menu
  • HOME
  • TAGS

Spring-MVC, Cometd : Check who is typing in chat in Comet

spring,spring-mvc,comet,cometd,reverse-ajax

This is easily achieved by detecting on the client side the typing start/stop (in a smart way to avoid to send too many messages to the server), then send a CometD service message to the server. The server can then just broadcast a message to a special channel (say /chat/typing)...

Comparing websockets with long-polling

php,websocket,benchmarking,comet,long-polling

I'd recommand Zabbix. It gives you alot of information about the server overload. You can also try xDebug....

How to make page scoped comet actor in Lift

scala,comet,lift,actor

You need to use the 'name' attribute when you instantiate the comet actor on the page. This should result in new actors being instantiated for each name. You can get at the name assigned to an actor through it's 'name' value. Usually you'll get quicker & better answers on the...

cakephp3: how to implement facebook style or stack style user notifications using view cells?

javascript,cakephp,notifications,comet,cakephp-3.0

You will have to use JavaScript in one way or another, view cells are unrelated in the sense that they are purely server side technology that assists in view rendering. The StackExchange sites are using WebSockets for these notifications, Facebook used to use long polling AJAX requests if I remember...

What technology does GCM (Google Cloud Messaging) use?

android,sockets,http,android-gcm,comet

Here is a good overview: http://developer.android.com/google/gcm/gcm.html Somewhere it explains that GCM is preferred to the app polling because the Android OS is doing the polling through a long-held OS connection to the GCM server. So even though they call it "push" technology it is really being polled/pulled by the device....

How to remove duplicate of the last message on page load from Comet Chat?

php,jquery,mysqli,prototypejs,comet

Since you said it adds an additional message to the chat while there is only one record of that message in the database, i will advise that you load the page with the number of messages you use to load it with minus (-1). Then since your script already adds...

Is there a server cost to using WebSockets?

node.js,websocket,comet

There are lots of good overview sites to read about how websockets generally work like here and here. In a nutshell, they initiate a connection with a certain type of HTTP request and then after that, they are a direct TCP bi-directional connection between client and server. There is some...

writing an $httpProvider for a long-polling comet app

angularjs,promise,comet,long-polling,angular-promise

"Does this even make sense?", not quite. It would appear that what you need client-side is : Fixed a set of fixed Angualr listeners (maybe one per channel, but potentially one per message-type per channel). Per polling cycle a long-poll initiator / listener a message bundle parser / event broadcaster...

MAX EXECUTION TIME exceeded in long polling

php,mysql,ajax,comet,long-polling

(First, I hope I am understanding correctly the purpose of your code.) PHP is designed to execute on-demand. A request comes in, it briefly does something, then goes away. To, instead, have it sitting there waiting for something is "wrong". If, for example, you are building a feature similar to...

Dealing with Cometd exceptions

java,sockets,jetty,comet,cometd

The CometD server does not, by default, close connections, unless these are idle for a long time. However, since CometD has a built-in heartbeat mechanism, the connections will never remain idle enough to trigger a server-side close (assuming the network is stable). Every time you encounter a situation where the...

Cometd with Spring-MVC for personalized chatting

spring-mvc,comet

Using Spring 4.x's new WebSocket feature would definitely work; moreover, this new module ships with lots of very interesting features for your use case: STOMP protocol support messaging abstractions session management pub/sub mechanisms etc You can check this nice chat application that demonstrates all those features....

Comet streaming: XHR streaming and Forever iFrame still possible in 2015?

iframe,xmlhttprequest,streaming,comet

In our experience, XHR Streaming is still working properly on all browsers. You can see it working in any of our demos, after switching off WebSockets. Do like this: Go to http://demos.lightstreamer.com/StockListDemo_Basic/ Click on the top-left "S" icon to expand the widget and see the transport state; you should see...