Comments (1)
Unfortunately, sending both text and binary WebSocket messages is unsupported by current design of websocat.
There is also no obvious workaround. You can help by thinking and describing your opinions about how UX/workflow for mixing binary and text messages when forwarding from TCP would work. Note that status of being a text or binary message is only one part of the problem. Other part is how to find where contents of the file ends and the next text message begins. It would probably involve two TCP sockets or some prefixes/delimiters. To be a part of Websocat, it should be universal (allowing multiple text -> binary -> text
transitions, supporting arbitrary (not necessary JSON) messages, and so on. Otherwise it's better to make a separate tool for the file upload.
What is that service with such API? Maybe there is some dedicated tool for it? Or it is the time to make such tool?
from websocat.
Related Issues (20)
- How to respond automatically as a server. HOT 4
- doesn't work with localhost, but ok with 127.0.0.1 (guessing related to IPv6) HOT 2
- how to make it accessible publicly HOT 1
- how to terminate exec process? HOT 3
- Can websocat perform force resolve? HOT 2
- Does the latest version support reverse connections? HOT 1
- Feature Request: Wait until connection has first packet to open other connection HOT 3
- Feature Proposal: Add message framing to binary stream i/o HOT 8
- How do you get your own socket ID? HOT 2
- TCP socket listen does not work on Windows HOT 2
- Many zombie process HOT 2
- warnings with ping when disconnecting the socket
- Adding a timeout option for connection
- send a message and listen for incoming messages HOT 1
- "Advanced" mode does not proxy connections (upgrade failed) HOT 1
- Debugging output is useless HOT 1
- What do I do with the file? Say 'websocat.aarch64-unknown-linux-musl' I downloaded, now what? HOT 2
- Executable no longer statically linked HOT 3
- unable to run external commands in background or from crontab HOT 9
- what is the value of "--just-generate-accept" HOT 4
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.