1.0.0 ā€¢ Published 5 years ago

@dcos/mesos-client v1.0.0

Weekly downloads
20
License
Apache-2.0
Repository
github
Last release
5 years ago

Apache Mesos Client Build Status


šŸ‘©ā€šŸ”¬ Please be aware that this package is still experimental ā€” changes to the interface and underlying implementation are likely, and future development or maintenance is not guaranteed.


This package provides a nice way of connecting to the Mesos Event Stream API. It is a wrapper that uses @dcos/http-service to establish a connection and @dcos/recordio package to parse the incoming data and deliver it as a Rx.Observable.

Example

import { stream, request } from "@dcos/mesos-client";

stream({ type: "SUBSCRIBE" }).subscribe(
  value => console.log(value),
  error => console.log(error),
  () => console.log("complete")
);

request({ type: "GET_FLAGS" }).subscribe(
  value => console.log(value),
  error => console.log(error),
  () => console.log("complete")
);

stream opens a persistent connection to Mesos HTTP Operator Api Event Stream and returns rxjs Observable.

request makes a call to the Mesos HTTP Operator Api and returns response as an rxjs Observable.

1.0.0

5 years ago

0.2.6

5 years ago

0.2.5

6 years ago

0.2.4

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.10

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago