Skip to content

Client emit or send, nothing cames to server #790#792

Open
marktech0813 wants to merge 2 commits intosocketio:mainfrom
marktech0813:develop
Open

Client emit or send, nothing cames to server #790#792
marktech0813 wants to merge 2 commits intosocketio:mainfrom
marktech0813:develop

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