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
Hi, I need to show the message author when I receive the message in the front end app.
I am using node with socket io on backend.
When I send a message as abaixo, the component change always the author name to "me".
So, in the node backend, I have no author name that sent the message. I get only "me".
How could I get the original author of the message on backend?
Do I have to use an additional property in the json message?
Maybe I am wrong, but it is very odd I have to do it.
For sample if I do a broadcast on server to all connected users using socket io, I have only "me" as author.
All users will receive "me".
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
You should be able to accomplish what you want by following the demo app structure in the demo folder.
We are also working on a multi-chat version that also solves the 'me' issue (see #194).
Uh oh!
There was an error while loading. Please reload this page.
Hi, I need to show the message author when I receive the message in the front end app.
I am using node with socket io on backend.
When I send a message as abaixo, the component change always the author name to "me".
So, in the node backend, I have no author name that sent the message. I get only "me".
How could I get the original author of the message on backend?
Do I have to use an additional property in the json message?
Maybe I am wrong, but it is very odd I have to do it.
For sample if I do a broadcast on server to all connected users using socket io, I have only "me" as author.
All users will receive "me".
The text was updated successfully, but these errors were encountered: