Giter Site home page Giter Site logo

Comments (5)

bsergean avatar bsergean commented on May 14, 2024

This is partially done. We can send a TEXT message with sendText, but there is no utf-8 validation.

from ixwebsocket.

Dimon4eg avatar Dimon4eg commented on May 14, 2024

Why do you want to validate utf-8?

from ixwebsocket.

bsergean avatar bsergean commented on May 14, 2024

Quoting the RFC -> https://tools.ietf.org/html/rfc6455#page-48

8.1.  Handling Errors in UTF-8-Encoded Data

   When an endpoint is to interpret a byte stream as UTF-8 but finds
   that the byte stream is not, in fact, a valid UTF-8 stream, that
   endpoint MUST _Fail the WebSocket Connection_.  This rule applies
   both during the opening handshake and during subsequent data
   exchange.

from ixwebsocket.

bsergean avatar bsergean commented on May 14, 2024

Maybe that only applies to the receiving side, but it sounds well behaves to fail sending something which isn't valid utf-8, however this will have a cost + will add more code to the library.

from ixwebsocket.

Dimon4eg avatar Dimon4eg commented on May 14, 2024

I think we can close this issue as text messages are supported.
About UTF-8 validation: we can open dedicated issue for it if needed.
For me it's fine now.

from ixwebsocket.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.