We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For simple strings like sse.send("Test string"), you get the following output:
sse.send("Test string")
id: 0 data: "Test string"
However it is perfectly valid to have, and perhaps more common to have:
id: 0 data: Test string
If this representation is desired however, it is not possible to get it currently using express-sse.
The text was updated successfully, but these errors were encountered:
I think that's simple to do.
const stringify = (val) => typeof val === 'string' ? val : JSON.stringify(val)
Ah, just do it with PR
Sorry, something went wrong.
stringify only if val is not string
2683729
fix: dpskvn#22
dpskvn
Successfully merging a pull request may close this issue.
For simple strings like
sse.send("Test string")
, you get the following output:However it is perfectly valid to have, and perhaps more common to have:
If this representation is desired however, it is not possible to get it currently using express-sse.
The text was updated successfully, but these errors were encountered: