You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The SSE protocol has a slightly peculiar format and can't be easily tested with Pact today - whilst the protocol is text based, Pact doesn't understand the various tokens and therefore payloads would currently require exact matching, which is rather brittle.
SSE could be developed as a Content Matcher plugin and optionally a transport (the Asynchronous message type could easily model this interaction without a transport if needed) https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#event_stream_format
The SSE protocol has a slightly peculiar format and can't be easily tested with Pact today - whilst the protocol is text based, Pact doesn't understand the various tokens and therefore payloads would currently require exact matching, which is rather brittle.
SSE could be developed as a Content Matcher plugin and optionally a transport (the Asynchronous message type could easily model this interaction without a transport if needed)
https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#event_stream_format
https://pact.canny.io/admin/board/feature-requests/p/plugin-server-sent-events
The text was updated successfully, but these errors were encountered: