Note that there are some explanatory texts on larger screens.

plurals
  1. POYAWS Websocket Trouble
    primarykey
    data
    text
    <p>I'm trying to get the <a href="http://yaws.hyber.org/websockets.yaws" rel="nofollow">YAWS websocket</a> example from <a href="http://yaws.hyber.org/websockets_example.yaws" rel="nofollow">here</a> running on my local. It's a basic ws-based echo server.</p> <p>I have </p> <ul> <li>YAWS set up and running on <code>localhost:8080</code> (direct from the Debian repos; no conf changes except pointing it to a new root directory)</li> <li>the code listing from the bottom of <a href="http://yaws.hyber.org/websockets.yaws" rel="nofollow">this page</a> wrapped in <code>&lt;erl&gt;</code> tags saved as <code>websockets_example_endpoint.yaws</code> </li> <li><a href="http://yaws.hyber.org/websockets_example.yaws" rel="nofollow">this page</a> saved as <code>index.yaws</code> (I literally copy/pasted the view-source for it, saved it as that file and pointed the socket request at <code>localhost:8080</code> rather than <code>yaws.hyber.org</code>).</li> </ul> <p>When I visit <code>localhost:8080/websockets_example_endpoint.yaws</code> in-browser, it displays the text "You're not a web sockets client! Go away!", as expected. When I visit <code>localhost:8080</code>, it points me to the javascript enabled form, but the "Connect" button does nothing when clicked. If I leave <code>index.yaws</code> pointed at <code>yaws.hyber.org</code> instead of <code>localhost:8080</code>, the echo server connects and works exactly as expected.</p> <p>Can anyone give me a hint as to what I'm doing wrong (or alternatively, point me to source for a working example)?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload