Coder Social home page Coder Social logo

Comments (5)

vi avatar vi commented on June 2, 2024

-b ?

from websocat.

pliardb avatar pliardb commented on June 2, 2024

Thanks a lot for the very quick reply. I'll give this a try and report back. I may have seen and discarded this option earlier when seeing in the description message that it applied to the request (in my case the request is in text and the response in binary). I should have given it a chance though.

from websocat.

vi avatar vi commented on June 2, 2024

--dump-spec option shows debugging output, depicting auto-inserted message-to-line and line-to-message convertors in text mode (which is the default).

Those conversions allow scripts to rely on one message = one line. --no-line and --no-fixups turn off those auto things.

from websocat.

pliardb avatar pliardb commented on June 2, 2024

Thanks a lot, --no-fixups did the trick. Perhaps websocat could default to this when dealing with a binary response frame. Though I think this particular issue could probably be closed given the existence of --no-fixups.

from websocat.

vi avatar vi commented on June 2, 2024

By default Websocat assumes text messages to be sent and received and is aimed primarily at interactive testing of WebSocket endpoints (e.g. using something rlwrap websocat ws://127.0.0.1:8080).

-b switches it to binary mode, aimed primarily at websocat -b ... < upload_file > download_file or interconnection with a plain TCP.

There are other, trickier modes for mixing text and binary messages flexibly.

--no-fixups also turns off lints (warning messages when Websocat detects potentially problematic command line) and can lead to errors when advanced features are used, so it seems to be a poor default.

from websocat.

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.