Questions tagged [server-push]

Server push describes a style of Internet-based communication where the request for a given transaction is initiated by the publisher or central server.

Push services are often based on information preferences expressed in advance. This is called a publish/subscribe model.

A client might "subscribe" to various information "channels". Whenever new content is available on one of those channels, the server would push that information out to the user.

E.g. APPLE Push notifications or Android Push notifications.

336 questions
0
votes
1 answer

How should I implement server push so that the browser is updated with DB updates?

I am reading on various ways of doing server push to client side(broswer).I would like to understand the best approach out of these. Long polling -- To be avoided as it holds up resources longer on server side. Node JS async delegation using…
0
votes
1 answer

Periodical website parsing consumes high data downloading. Should I migrate my logic to a server? How?

First of all, sorry for my bad English. I've made an Android app which seems to work fine. Its mission is to connect to a website and parse it to see if there is new data. In that case, it creates a notification. The data in the website is modified…
Alberto
  • 3
  • 1
0
votes
3 answers

Should we unregister the receiver in gcm (Android)

I got deviceId from GCM upon successful registration. I am storing my deviceId in SharedPreferences. In the main activity I am unregistering the receiver in onDestroy() method. If I don't unregister the reciever then I am getting memory leak…
0
votes
1 answer

Livechat system with push notifications (php)

im developing a dating site, which includes a livechat system where people can chat in private conversations (like facebook chat, or the badoo message system). What is the best approach for a live chat? I'm thinking about a push system. Do I have to…
Andres SK
  • 10,779
  • 25
  • 90
  • 152
0
votes
2 answers

Push questions and help

Hay guys, I'm looking into reading about 'push' technology, but i think i may have heard about it in the wrong way. Is there are interesting things i should know about it? How can it be done in PHP? Can it be done in PHP? What's the general idea…
dotty
  • 40,405
  • 66
  • 150
  • 195
0
votes
1 answer

Httpsessionlistener: two sessions are created and none are destroyed

Edit: I reformulated the question I'm using Spring and GWTEventService (which is basicly the same as Comet). When I make a simpler HttpSessionListener, I see sessionCreated() is called twice and sessionDestroyed() is not called in between. Why is…
Vjeetje
  • 5,314
  • 5
  • 35
  • 57
0
votes
1 answer

How facebook pushes notifications, friend requests and other updates to its android mobile app?

What polling mechanism (implementation) does Facebook use to push data to its android mobile app ?
Ashni Goyal
  • 819
  • 3
  • 10
  • 20
0
votes
1 answer

Is there a way to clear XDomainRequest.responseText in IE8

I'm implementing server push solution. Is there a way to clear XDomainRequest.responseText of IE8, since it gets filled with the every response chunk? (to get same effect as in Firefox xhr.responseText with multipart where it contains only the last…
Don Srinath
  • 1,565
  • 1
  • 21
  • 32
0
votes
1 answer

Socket to receive data and push to client browser in a web application

There is a SocketServer which I need to connect, receive data and then push it back to clients (web browser). I just need to confirm the approach. I will create a Socket connection which will keep listening for message inside a…
0
votes
5 answers

Message to a client from the server

I have to design a client/server system emulated on a website running Ruby on Rails that should work like this: a page is requested by a web browser and once it's opened the server can push messages to it I know this is not possible "naturally" but…
LucaN
  • 1
0
votes
1 answer

How to know whether a person left your website?

I am building a website in PHP and i need your help. I want to know the time of the user who logged in my site. The task was to store the login time and then the logout time. The login can be stored easily. But for logout there are many ways. The…
user1929236
  • 125
  • 2
  • 5
  • 18
0
votes
1 answer

How to start a background thread after the HTTP request is served and sent back to the client?

I have a Vaadin application and I'm implementing some asynchronous background processing. As far as I know, all requests from the client are processed by one of the threads from the Tomcat's thread pool and after a request is processed the response…
janhink
  • 4,943
  • 3
  • 29
  • 37
0
votes
1 answer

Server throwing OutOfMemory Exception when reading byte array from TCP connection

I'm still working on my push server! I have successfully implemented encryption using javax.crypto.cipher. This requires I read/write bytes to the socket's stream. I can send and receive just fine. Encryption works. But when there's nothing going…
Osmium USA
  • 1,751
  • 19
  • 37
0
votes
1 answer

A "native container"-"device management server" pair to push Html5 apps

We have multiple customers and each customer would have multiple apps. One more thing is that users would have different apps (workflow apps, chart apps, administration apps, etc.) assigned by their roles. And these customers would prefer installing…
Ali Ok
  • 716
  • 1
  • 8
  • 23
0
votes
2 answers

How HTTP streaming is different from Comet for server push?

I want to implement Server Push in my Java web application. HTTP Streaming is that I can open a connection with the client and its always open and sends data whenever server gets it. 1. But how is this different from Comet? 2. I want to use server…