I cannot find the way to make the Yaws's WebSockets example to work correctly if a .yaws_auth file is added to the docroot directory to enable the HTTP basic authorization. The .yaws_auth simply contains the following line
The following line is added to the log file localhost.8080.auth on each attempt.
127.0.0.1 [01/Apr/2013:14:22:34 +0800] localhost:8080 "/websockets_example_endpoint.yaws?extversion=true&keepalive=true&timeout=5000" 401 realm=
Removed the .yaws_auth the websockets example works perfectly.
My installation has Yaws 1.96 and Erlang R16B for windows xp