Questions tagged [event-stream]

This tag is for questions relating to event streams in HTTP. Event streams are an easy way for a server to have a continuous connection with the client and send data back and forth.

137 questions
0
votes
1 answer

Passing data from PHP script to PHP Event Stream

So I have a PHP file that will randomly receive new posted data from a third-party. For the sake of simplicity, let's call it get_data.php and say it looks something like this:
0
votes
1 answer

gulp-inject not working with event-stream

gulp-inject does not working with event-stream. var gulp = require('gulp'); var mainBowerFiles = require('main-bower-files'); var inject = require('gulp-inject'); var es = require('event-stream'); var config = { sassDir:…
Mo.
  • 26,306
  • 36
  • 159
  • 225
0
votes
1 answer

WSO2CEP : Getting previous event value from stream in siddhi query

I have been using following siddhi query to get the events count per minute; ts as timestamp (string) and ftp_requests as count (int). from FTPInStream[command == 'USER'] select time:timestampInMilliseconds(time:dateAdd(str:replaceAll(ts,'T',' '),…
aneela
  • 1,457
  • 3
  • 24
  • 45
0
votes
1 answer

WSO2 : Updating an output stream in Siddhi Query

I have a siddhi query to get the count of total events in one minute by using a timebatch window. Using an output stream I am updating a bar chart with constant coming values, timestamps(date and time,till minute ) on the x-axis and events count on…
aneela
  • 1,457
  • 3
  • 24
  • 45
0
votes
1 answer

Is there any way to fetch Hystrix Stream using java SSE clients

Is there any way I can fetch Hystrix streams (which produces metrices), since it is a server side event stream, thus it is not possible to fetch it using normal http client. I was trying to using Jersey based SSE, however it is not able to do…
Lovey
  • 880
  • 3
  • 15
  • 31
0
votes
1 answer

How do I close the connection an HTTP connection created in Angular2?

I am developing an sample cordova/ionic app. I am using angular2/typescript. I have issued a GET request that gives me handle over an event-stream from a node.js server. I would like to close this connection. How can I do…
georgekuruvillak
  • 325
  • 2
  • 10
0
votes
2 answers

What is a good event store/stream middleware for service-oriented/ microservice-architectures

I am building a microservice-architecture and I am looking for a good way to stream events. Currently I have a service that publishes an event that three other services need to react to in a certain way, however the reaction to this event shall…
KaffeeKaethe
  • 301
  • 1
  • 3
  • 10
0
votes
2 answers

Streaming from file, transformation and to postgres error

I need to populate PG with a tsv file ~ 1.5 G. I plan to use streaming and pg-copy-stream and it worked for direct copy. Then I need to do some transformation and added a through pipe and it failed. I guess it is probably a buffer problem and…
Da Qi
  • 615
  • 5
  • 10
0
votes
1 answer

Modeling an event Sink in RxJava for events that need onComplete/onError

I'm in the process of writing a client for Apache Mesos' new HTTP Scheduler API using RxJava and RxNetty. I've managed to successfully create the connection with RxNetty and create an Observable from the resulting chunked stream. Now I'm at…
0
votes
1 answer

gulp task to merge generated sass event stream as required order is not working

I have three bootstrap sass and two more sass files which I am compiling and merging into one css. On bootstrap I am running "uncss" to get rid of unused css however for others I am not running the "uncss" as I don't want. To merge these I am using…
joy
  • 3,669
  • 7
  • 38
  • 73
0
votes
0 answers

event-stream map works outside pg Callback but not inside

I have trouble with event-stream in a pg callback. I was able to reduce it with this small piece of code: var es = require('event-stream'); var pg = require('pg'); var ar = ['dd','dd','aa']; var s1 = es.readArray(ar); var s2 =…
TheFive
  • 168
  • 1
  • 10
0
votes
1 answer

x-dom-event-stream in Opera 10 Only Working on First Event

I have a python script (in the CherryPy framework) that sends Event: and data: text as this Opera blog post describes to a client browser. The javascript that recieves the x-dom-event-stream content is almost identical to what they show in the blog…
Brad
  • 5,845
  • 7
  • 30
  • 29
0
votes
1 answer

HTTP POST elastic search event stream bulk

I have a node.js program that is using streams to read a file (nodejs event stream setting a variable per stream ) I would like to use the same program to write this data into elastic search . I wrote up a small write function var writeFunction =…
0
votes
1 answer

nodejs event stream setting a variable per stream

I have a code that creates a readable stream . I would like to set the name of the stream in the getStream method . I tried setting a property as shown below . I am able to access the property in the onceFunction but I am not able to access the…
0
votes
1 answer

Implementing producers/consumers with bacon.js event stream pool

I want to implement the producer consumer pattern with a pool of bacon.js event streams. Here's the specific problem I'm trying to solve: I have a list of 'n' urls. I want to create event streams to make http requests for those urls, but I want to…
tldr
  • 11,924
  • 15
  • 75
  • 120
1 2 3
9
10