Simulates a comet client. To the core streaming client this mocks the internal comet impl. The uses setTimeout(0ms) event loop phase just so the client can simulate actual streaming without the response latency.
Constructor
Extends the StreamingClient options.
Fake addExtension. Does nothing.
Fake disable. Does nothing.
Fake disconnect. Does Nothing.
Fake handshake that invoke callback after the setTimeout event phase.
The function to invoke.
Fake setHeader. Does nothing,
Fake subscription that completed after the setTimout event phase.
The streaming channel.
The function to invoke after the subscription completes.
Simulates a comet client. To the core streaming client this mocks the internal comet impl. The uses setTimeout(0ms) event loop phase just so the client can simulate actual streaming without the response latency.