Comments (2)
@x20mar I won't have time to do this personally, but if somebody wants to code up a simple example then I'm willing to include this as an example in the repo.
from websockify.
it's pretty straightforward. for pgsql, launch like this: ~/websockify/websockify.py 5432 -- /usr/lib/postgresql/9.1/bin/postgres -D .
i made a fork of node-postgres here on github to make it work in the browser. there are issues because websockify seems to discard data just before connection close, which makes error messages about wrong login disappear, i'll make an issue for that.
to find out what to send over the websocket, you can use wireshark on a psql session.
i also made a quick modification of wstelnet.html to test out pgsql over websocket, it's here: https://gist.github.com/3779549 instructions:
- adjust hex data (using data from wireshark, or by looking at it in ascii).
- open connection to websockified pgsql.
- click part1 (postgres handshake)
- click part2 (postgres login)
- click part3 (postgres query)
- click part4 (postgres logout)
here's a screenshot: http://i.imgur.com/EipJ9.png
from websockify.
Related Issues (20)
- Installation fails HOT 1
- wss: via ssl on linux debian board HOT 1
- Readme is missing examples HOT 1
- Failed when connecting: Connection closed (code: 1005) HOT 2
- soft reload possibility HOT 1
- novnc session getting disconnected after 30 min if left idle HOT 5
- Server disconnected (code: 1015). Open developer tools (F12/Ctrl+Shift+I on Windows, Option+Command+I on Mac OS) and switch to "Console" for details HOT 1
- Exception when use JSONTokenApi as token plugin
- how to connect to tls vnc server HOT 4
- Extra parameters HOT 2
- Connection pooling HOT 1
- which option disabling directory listings HOT 1
- Websockify: Integrate xterm.js HOT 1
- add support for accept-ranges in http server HOT 5
- TypeError: can't concat int to bytes HOT 3
- Python 3.12 seems to break websockify HOT 3
- ..
- How to use auth-plugin or token-plugin to authenticate session instead of prompting user for vnc password? HOT 1
- websockify: error: too many arguments HOT 3
- 0.12.0: `ruff` fails in websockify.py and tests/load.py HOT 1
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 websockify.