Skip to content

Conversation

@marktech0813
Copy link

I added a defensive improvement and documentation to address your issue.

  • In Socket.emit(...), the client now logs a warning if you emit a JSON-looking string (e.g., "{...}" or "[...]"), prompting you to send a JSONObject/JSONArray instead.
  • In src/site/markdown/emitting_events.md, I documented this pitfall with a “wrong vs correct” example.

I added a defensive improvement and documentation to address your issue.

In Socket.emit(...), the client now logs a warning if you emit a JSON-looking string (e.g., "{...}" or "[...]"), prompting you to send a JSONObject/JSONArray instead.

In src/site/markdown/emitting_events.md, I documented this pitfall with a “wrong vs correct” example.
In src/site/markdown/emitting_events.md, I documented this pitfall with a “wrong vs correct” example.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant