Skip to content

Server sent events don't work and seem to be buffered by the Cypress proxy. #1440

@hally9k

Description

@hally9k

This is following up after tagging onto this issue with my versions, specs and further info:

  • Operating System: macOS 10.13.3
  • Cypress Version: 2.1.0
  • Browser Version: Google Chrome 65

Is this a Feature or Bug?

Bug

Current behavior:

No server sent events are received by the application running in the Cypress browser. If I kill the server then all events are flushed and appear in the browser at once. It seems that the events are getting buffered in Cypress' proxy layer until the connection terminates. This is how nginx works (or more accurately - doesn't work) with buffering turned on.

Desired behavior:

Server sent events are passed through to the application.

How to reproduce:

Run the repro below.

Test code:

https://github.com/hally9k/cypress-sse

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: featureNew feature that does not currently exist

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions