socket.io-client-java
socket.io-client-java copied to clipboard
Emoji's are not working
I am Emitting some messages to server appended with emoji's, if i append certain emoji's to that messages its not getting delivered to server. other than that emoji's others are working. If someone can help me understand why it is ?
for eg: if emit :sob: this emoji its working fine, if i emit :smiley: this emoji its not getting delievered at server side.
The example works fine with these emoji, you can try https://github.com/nkzawa/socket.io-android-chat
you can use UTF8.encode(emojiString)
edited :
Don't use UTF8.encode(Str) it will just break the characters. I have just realized that my emit was inside my onConnect, and so i tried to wrapped it with new Handler(Looper.getMainLooper()) then add delay to it then it works fine now.
so maybe emitting needs to be in higher thread or allowing socket to process your message with emoji
any solution for this my obj in call is {"message":"\u0006"}, and this is appearing as blank at my end.