Comments (3)
Specifying listeners on both parts is typically not a good idea. What do you want to do?
Some things that may help:
- Specifying
-E
option to terminate connections more aggressively; - Using
reuse-raw:
overlay (or maybereuse-broadcast:
, depending on use case); - Using
autoreconnect:
(especially with some form of connection reuser).
Command line that works reasonably for me:
websocat --text -E ws-l:127.0.0.1:5818 reuse-raw:autoreconnect:tcp-l:127.0.0.1:5819
Note that port 5819 only starts being listened after the first WebSocket clients gets connected.
from websocat.
Thanks very much for those overlays. I'd tried -E before with no luck, but using the options you suggested together seems to do the trick.
What I'm doing is, specifically, https://nabu.run (https://youtu.be/zabJhYvoI1k). It may not be a good idea to listen on both parts, but it is exactly what I need. Being able to do that with websocat makes my application possible, and saves me having to write my own proxy.
The situation I was trying to avoid was that if you clicked the "Connect WebSocket" button and then closed it or reloaded the page, it couldn't be used again.
Not sure if there's still a bug worth fixing, but I feel like I have a reasonable workaround now.
from websocat.
Related Issues (20)
- Need help to debug a websocket HOT 9
- handshake with text and then pipe binary output to ffmpeg HOT 1
- Websocat server with base64 encoded file HOT 4
- piping with tcp reuse-raw splits payload HOT 2
- Connection Error HOT 2
- i need help with es-sh over wabsoket over see-dee-yen HOT 10
- Binary websocat.x86_64-pc-windows-gnu.exe version v1.11.0 is flagged as a virus HOT 3
- Support HTTP Redirection at Handshake HOT 2
- Latest release branded as malware HOT 3
- Broken when running against solana-test-validator HOT 2
- Line feed (\n) sent instead of carriage return (\r) HOT 2
- Error when running example, artifact not found on Clojars HOT 1
- Is there a way to keep websocat receiving content from named pipe? HOT 4
- panic when trying to run the wss broadcast example HOT 1
- WebsocketError: Received unexpected status code (200 OK) when proxying with nginx HOT 4
- mixed text/binary client hex representation HOT 5
- send body? HOT 4
- No http proxy support HOT 3
- Infinite loop with autoreconnect:reuse HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from websocat.