allinurl / gwsocket

fast, standalone, language-agnostic WebSocket server RFC6455 compliant
http://gwsocket.io
MIT License
745 stars 67 forks source link

Invalid request #3

Closed gbrantzos closed 8 years ago

gbrantzos commented 8 years ago

I try to access gwsocket with the url http://ip-address:7890/terminal.html, but I keep getting 400 invlid request. Am I trying the correct address?

Thanks

allinurl commented 8 years ago

The web-socket server runs by default on port 7890. The html file can run on any port or even opening the file from your browser, e.g., file:///home/user/terminal.html.

Please take a look at this, it might be the same issue you are having.

gbrantzos commented 8 years ago

Thanks for your prompt answer! I can see the output now. Do you have any idea about handling escape characters from html code?

Thanks for your time.

g.brantzos@gmail.com

Please consider your environmental responsibility before printing this e-mail!

------ Original Message ------ From: "Gerardo O." notifications@github.com To: "allinurl/gwsocket" gwsocket@noreply.github.com Cc: "gbrantzos" g.brantzos@gmail.com; "Author" author@noreply.github.com Sent: 26/Μαϊ/2016 17:10:18 Subject: Re: [allinurl/gwsocket] Invalid request (#3)

The web-socket server runs by default on port 7890. The html file can run on any port or even opening the file from your browser, e.g., file:///home/user/terminal.html.

Please take a look at this, it might be the same issue you are having.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub

allinurl commented 8 years ago

Good question. If you are outputting simple ansi stuff, you can try ansi_up, just need to include one js file.

For more complex terminal outputs and even the ability to send commands to the actual terminal from your browser, your can use hterm. Take a look at the code behind the sample file I used for a full-blown terminal output. It's only one JS file

gbrantzos commented 8 years ago

Looks really nice and promising. Thanks alot!!!

------ Original Message ------ From: "Gerardo O." notifications@github.com To: "allinurl/gwsocket" gwsocket@noreply.github.com Cc: "gbrantzos" g.brantzos@gmail.com; "Author" author@noreply.github.com Sent: 26/Μαϊ/2016 17:28:43 Subject: Re: [allinurl/gwsocket] Invalid request (#3)

Good question. If you are outputting simple ansi stuff, you can try ansi_up, just need to include one js file.

For more complex terminal outputs and even the ability to send commands to the actual terminal from your browser, your can use hterm. Take a look at the code behind the sample file I used for a full-blown terminal output. It's only one JS file

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub

allinurl commented 8 years ago

No problem. Closing this, feel free to reopen it if needed.