Giter Club home page Giter Club logo

Comments (3)

vi avatar vi commented on September 27, 2024

Indeed, autoreconnect:reuse: does not make much sense. Maybe I'll implement a lint that shows a warning when trying to use such combination.

from websocat.

vi avatar vi commented on September 27, 2024

My ultimate use case is periodically (e.g. every second or via tail) reading a file, filtering lines, and dumping results to a (real) server. I'd rather not reconnect every second so I was experimenting with reuse/reconnect to act as a pseudo-persistent connection.

Something like

tail -f some_file.txt | websocat -ut - ws://127.0.0.1:12345

? Why do you need reuse:?

Also note that reuse: have two modes: reuse-raw: and broadcast: (the default). They have different buffering behaviour and sometimes single client mode (raw) works better.

from websocat.

josh-endries avatar josh-endries commented on September 27, 2024

I was originally thinking of sending frequent batches via cron, or a script loop, and reuse seemed like a way to try to keep connections open instead of opening a new one for every batch. With a streaming approach it's not needed.

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.