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
14
votes
8 answers

HTML5 Server-Sent Events prototyping - ambiguous error and repeated polling?

I'm trying to get to grips with Server-Side Events as they fit my requirements perfectly and seem like they should be simple to implement, however I can't get past a vague error and what looks like the connection repeatedly being closed and…
tomfumb
  • 3,669
  • 3
  • 34
  • 50
13
votes
1 answer

text/event-stream recognised as a download

I'm trying to implement server push in my Flask project following this tutorial. I've set it all up with no errors, however when I go to the /stream page, Firefox recognizes it as a file and tries to download it. In Safari it just prints out the…
DJDMorrison
  • 1,302
  • 2
  • 17
  • 34
11
votes
3 answers

What is the WebSockets alternative in the HTTP/2 world?

The new HTTP/2 protocol comes with some promising features. Some of them: Multiplexing - a single TCP connection can be used to make multiple HTTP/2 requests and receive multiple responses (to a single origin) HTTP/2 Server Push - sending server…
Nikola Obreshkov
  • 1,698
  • 4
  • 21
  • 32
10
votes
3 answers

EventSource permanent auto reconnection

I am using JavaScript EventSource in my project front-end. Sometimes, the connection between the browser and the server fails or the server crashes. In these cases, EventSource tries to reconnect after 3 seconds, as described in the documentation.…
johnfound
  • 6,857
  • 4
  • 31
  • 60
10
votes
1 answer

server send push notification to client browser without using polling

I am developing a web app in which I want that when some changes in database occurs, server sends response to particular client(like push notification). And I want this notification to be sent client's browser. I don't want to use polling. What can…
Rikin Thakkar
  • 1,268
  • 3
  • 13
  • 27
9
votes
2 answers

Pushing data from SQL Server to Web Application with SignalR

My ASP.NET MVC 4 Web application is displaying frequently updated data to the client. Data originate from an external source (an application installed on the server) and processed by SQL Server 2008 R2. Currently the data flow is quite traditional:…
eddo
  • 2,094
  • 1
  • 25
  • 31
9
votes
3 answers

How to upgrade filters to support Servlet 3.0 asynchronous servlet

I have a servlet which is used to fetch data from many third party REST datapoints, integrate all the data and report the data in a HTML format. I also have a filter which has the following flow - Create an event record when the request hits the…
Shamik
  • 6,938
  • 11
  • 55
  • 72
8
votes
0 answers

How web push protocol works?

Problem I am wondering how webpush protocol works? Does it keep some kind of connection open like WebSocket protocol? Or does it use mechanism similar to polling? Tried According to documentation WebPush uses HTTP 2.0 server push: A simple protocol…
zolty13
  • 1,943
  • 3
  • 17
  • 34
8
votes
1 answer

Can we push notification without using APNs?

Is it possible to push notification from my 3rd party server directly to my device in Intranet(Wi-Fi)? I have achieved to push notification to the device with the help of APNs, but my requirement to achieve the same without using any external…
pradeepa
  • 4,104
  • 5
  • 31
  • 41
8
votes
1 answer

Difference between async servlet long poll and bayeux protocol (Comet)

What is the difference between a simple Async servlet and the Comet / Bayeux protocol? I am trying to implement a "Server Push" (or "Reverse Ajax") kind of webpage that will receive updates from the server as and when events occur on the server. So…
Basanth Roy
  • 6,272
  • 5
  • 25
  • 25
7
votes
5 answers

The client (desktop app) pulls data...but I want the server (web app) to push data

I have a client-server application - wherein the server is essentially an ASP .NET web application and the distributed clients are desktop applications. The clients need to receive some data from the server - when there is new data for the client.…
Sameet
  • 2,191
  • 7
  • 28
  • 55
7
votes
2 answers

Sending push to multiple android devices with a single POST

I've implemented push notifications in my Android app and am trying to build out the server-side to make it more scalable. Looking at the documentation on how to construct the POST to send a push, it seems I need to send a POST for every single…
Sam Dozor
  • 40,335
  • 6
  • 42
  • 42
7
votes
2 answers

Why is Golang http.ResponseWriter execution being delayed?

I am trying to send a page response as soon as request is received, then process something, but I found the response does not get sent out "first" even though it is first in code sequence.In real life I have a page for uploading a excel sheet which…
MoishAsh
  • 215
  • 1
  • 3
  • 7
7
votes
1 answer

How do I set multiple http header fields with the same key in Node.js?

I'm trying to set up server push with cloudflare, but they require multiple link header fields to push multiple files. However, I can't find any documented way to include multiple header fields with the same key in node.js. I tried providing an…
TimE
  • 2,800
  • 1
  • 27
  • 25
7
votes
2 answers

HTTP/2 Push JSON Payload

The most use cases for http/2 server push is to pre-emptively push assets files (such as javascript and css files) to browser. I am wondering can http/2 server push be used to send dynamic payload such as JSON documents to client application? From…
Alex
  • 247
  • 3
  • 12
1
2
3
22 23