Questions tagged [Comet] (47)

1
answer

Transports COMET and Websockets

Writing a paper on the COMET, and the question arose, what approaches to implementation should be addressed. According to javascript.ru the list is as follows: 1. Polling 2. Long-poll 3. Infinite IFrame 4. XMLHTTPRequest (interactive) 5. Multipart XMLHTTPRequest 6. Young approach Server-Sent Events But what about websocket...
Melody.Spenc asked October 10th 19 at 04:09
1
answer

What role Orbited in conjunction with the STOMP server for COMET?

Task: to set up a notification event for a custom GUI with a subscription to COMET newsletter. On the user side uses JavaScript. On the server side and uses the Ruby gem stomp. Between the server and the client is the mediator Orbited, which in turn is connected to RabbitMQ. Ruby server sends messages directly to RabbitMQ. ...
Theresia.Lem asked October 10th 19 at 02:05
1
answer

How to implement the client part on Android Comet?

Anyone faced with the development of the client part for comet on Android? Explain at least words process. On the server php. I want to implement the forwarding of messages in real time, saving in the database. Put Ape and dklab_realplexor. Haven't picked what I will use. But now worried about exactly how to implement the c...
Alanna3 asked October 10th 19 at 00:08
1
answer

Comet server with easy API

Good morning! On Habre a couple of weeks ago I slipped a reference to one bourgeois service allowing for short time to realize any comet feature on your site. Looked, like service, wanted to try it in one of the projects, but reference to it is lost. Even the name can not remember. The gugleniya did not help. Gabrieli, ...
vivianne_Hay asked October 8th 19 at 04:25
2
answers

What kind of Comet-the decision to choose?

Good day! Our project has elements of social networking, billing, drawings etc. There is a need to transform it into a single-page web app that would work in real-time mode. The customer must subscribe to these events (channels) as receiving private messages, invitations to friends/team/..., get the new page content (depe...
Guadalupe_Gleichner27 asked October 7th 19 at 14:26
6
answers

How to make a page refresh event in MySQL?

This: The application that is able to write only in mySQL MySQL Server 5.1 Web server (apache+nginx+php) + memcached The application is active writes the data to mySQL inserts up to 3 records per second. Mysql using a trigger adds the updated data to mecache where they are stored in the last 24 hours.It is necessary that wh...
Agnes_Collier asked October 7th 19 at 11:11
2
answers

What is the error when implemented Comet (Long Polling) method?

The problem is that the function works through each of about 0.1 second and does not respond to change the timeout value. Please suggest what is the error. On the client side you create a function: function getmess(){ $.ajax({ url:"get_mess.php", data:{"id":id}, type:"POST", timeout: 100000, complete:getmess, success:func...
Ashton.Bailey34 asked October 3rd 19 at 01:11
4
answers

Why in Comet (Long Polling) the data does not come instantly?

I can't immediately get the new data, they come only after the new execution of the function getmess that runs when the timer expires, in what could be the error? function getmess(){ $.ajax({ url:"get_mess.php", type:"POST", data:{"id":id}, cahce:false, timeout:30000, async:true, success:function(result){ $("#response").h...
Ashton.Bailey34 asked October 3rd 19 at 00:51
3
answers

How to do cross-domain Comet server?

Did the task to implement a logn-polling comet requests server a cross-domain way, and it seems to be nothing wrong with that, we put the right headers on our server and all cross-domain issues are removed. However, choosing as сomet server Dklab Realplexor I was faced with the problem that creates the iframe, which immedia...
Abel.Walker asked October 2nd 19 at 22:25
2
answers

How to transfer data from node.js in php?

Make the game for contact. PHP+flash. And node.js as a comet server for chat and other things. To transfer data I have found 3 options: 1. To do http request from node.js to php 2. To run a separate process in the form of a php script that will listen to data on a tcp socket or via redis pub/sub. And in this script still ...
Mariane.VonRueden asked September 30th 19 at 11:47