Comments (3)
A body with HTTP GET
request?
Maybe it is possible to implement, but what is the use case? Can one supply a body when doing WebSocket connection from a browser?
In typical protocols there may be a body in separate HTTP POST
request, which returns some token, which is then used for body-less HTTP GET
WebSocket connection request. Example of such protocol is Google Chrome remote debugging interface.
from websocat.
Some GraphQL servers (e.g. https://github.com/99designs/gqlgen) allow specifying a subscription query in the body which results in upgrading the connection to websocket.
from websocat.
Is it possible to send body-containing such WebSocket request from a browser?
Currently it is problematic to do such upgrade from WebSocat.
If you can do such upgrade using some external program (e.g. like curl -H "Connection: Upgrade" -H "Upgrade: websocket" -H "Sec-WebSocket-Key: IQZUbZm5XwEFrOVT8+3uUw=="
, but bidirectional), you can use pre-upgraded WebSocket connection with Websocat using a command line like this:
websocat -t - ws-lowlevel-client:cmd:'your_connect_and_upgrade_command'
from websocat.
Related Issues (20)
- 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
- Does not detect connection close in double-listen configuration HOT 3
- send body? HOT 4
- No http proxy support HOT 3
- Infinite loop with autoreconnect:reuse HOT 3
- How to fetch a stream and send API Key? HOT 1
- Verbose line HOT 1
- Undefined reference to SSL_get_peer_certificate at compile? HOT 1
- WebSocket SSL error self-signed certificate 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.