out(A) -> Host = (A#arg.headers)#headers.host, {abs_path, Path} = (A#arg.req)#http_request.path, EndpointPath = filename:dirname(Path) ++ "websockets_example_endpoint.yaws", WebSocketLocation = Host ++ EndpointPath, Body = html_body(WebSocketLocation), {content, "text/html", Body}. %% this html was copied from the basic example in %% http://github.com/davebryson/erlang_websocket/ html_body(WebSocketLocation) -> " Basic WebSocket Example

Basic Echo Example


Say Something: 
".