You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@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.
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).
Hey,
Is there any chance you could provide an example on how to use websockify in connecting a querying a database like mysql or postgresql?
Thanks
The text was updated successfully, but these errors were encountered: