简体   繁体   中英

Socket Io with Android

I am using this socket lib for implementation of chat App in Android socket chat . i am using Emitter for sending messages and Listener for getting response. but i want to edit messages after sent messages to server.Is it possible in socket or not?

No its not possible by using socket.io emitter. Once you emit something and server receives then you cant change the emitted event.

Yes it is possible. Simply edit the object whenever it reaches server. From there u can do whatever you choose with the edited object, most likely that would be send it to its final destination. I assume this means you are using node js so knowledge of js is required. You would edit the js object as seen in the link below. Edit Object Item with Javascript

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM