Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

Streaming and Event Q

Przemysław Rekucki edited this page May 13, 2019 · 1 revision

Create Queue

POST /sessions/{sessionId}/queues
201 Created
Location: /sessions/{sessionId}/queues/{queueId}
content-type: application/json

{queueId : u64}

Reading event from Queue

GET /sessions/{sessionId}/queues/{queueId}?ack=..&timeout=..&ws=..

on Exec, Start

on_events: Map<EventType, (Option, QueueId)>

EventType { Stdout, Stderr, ProcessExit, }

struct Event<Data> {
   tag : Option<String>,
   event_type : EventType,
   data : Data
}