marathon-event-bus-mock
A server to mock Marathon's (Server Sent) Event Bus.
Installation
Install as a dependency like this:
npm install marathon-event-bus-mock --save
Usage
To launch a MarathonEventBusMockServer
on port 8080
, you can do the following:
"use strict"; // Use MarathonEventBusMockServerconst MarathonEventBusMockServer = ; // Instantiate MarathonEventBusMockServer on port 8080const server = 8080; // Send random events every 2000msserver;
By default, it will publish Marathon >=v1.4 events. As those differ from former versions, you can use
const server = 8080 true;
to enable the legacy events.