Set mime-type response on Transmit SSE broadcast messages #4634
-
I´m testing the Transmit to emit a SSE, via broadcast, I also implemented a service on angular, to interact with it. It appears to work, but immediatelly after the conection, the browser closes the connection, with the error below:
Is there any way to set the content type on this broadcast? I could not find where to configure it. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @cmjunior! 👋🏻 The MIME type is already set to If you are receiving something else, it means you have changed it yourself in a middleware or something like that. |
Beta Was this translation helpful? Give feedback.
Hey @cmjunior! 👋🏻
The MIME type is already set to
test/event-stream
by the Transmit package.If you are receiving something else, it means you have changed it yourself in a middleware or something like that.
The best would be to have a repository with the minimum amount of code to reproduce your issue.