On Mon, Nov 30, 2015 at 1:07 PM, Alex B <
3du...@gmail.com> wrote:
>
> I built a websocket server for an social network, and I am getting weird
> errors like below when receiving messages:
>
> failed: Could not decode a text frame as UTF-8.
>
> When this happens it drops the socket connection.
https://tools.ietf.org/html/rfc6455#section-8.1
Some part of your system is trying to send/receive data that isn't
validate UTF-8 as a 'text' type websocket message.
You need to verify that text being sent as a 'text' type message is
UTF-8 before sending it.
It's possible you've got a client sending incorrectly encoded text.
My bet is you've not noticed the issue before because you haven't sent
multibyte characters in the past and just recently started sending
emojis.