Skip to content

clock demo fails: Error during WebSocket handshake #15

@ijt

Description

@ijt

All of the demos fail on my laptop, probably for the same reason. Here's the error that comes up in the console:

WebSocket connection to 'ws://localhost:1456/websocket/clock1' failed: Error during WebSocket handshake: Unexpected response code: 400

This is on Chrome version 40.0.2214.94 (64-bit).

No error comes up on the server side:

ezwebframe:handle "/clocks/clock1.html"
ezwebframe_demos::dispatch /clocks/clock1.html => /Users/issactrotts/erlang/joe_armstrong_book/websockets/ezwebframe/demos/clocks/clock1.html
mapped to:"/Users/issactrotts/erlang/joe_armstrong_book/websockets/ezwebframe/demos/clocks/clock1.html"
ezwebframe:handle "/common/jquery-1.7.1.min.js"
ezwebframe:handle "/ezwebframe/websock.js"
ezwebframe_demos::dispatch /common/jquery-1.7.1.min.js => /Users/issactrotts/erlang/joe_armstrong_book/websockets/ezwebframe/demos/common/jquery-1.7.1.min.js
ezwebframe_demos::dispatch /ezwebframe/websock.js => /Users/issactrotts/erlang/joe_armstrong_book/websockets/ezwebframe/demos/../priv/websock.js
ezwebframe:handle "/clocks/clock1.css"
mapped to:"/Users/issactrotts/erlang/joe_armstrong_book/websockets/ezwebframe/demos/common/jquery-1.7.1.min.js"
mapped to:"/Users/issactrotts/erlang/joe_armstrong_book/websockets/ezwebframe/demos/../priv/websock.js"
ezwebframe_demos::dispatch /clocks/clock1.css => /Users/issactrotts/erlang/joe_armstrong_book/websockets/ezwebframe/demos/clocks/clock1.css
mapped to:"/Users/issactrotts/erlang/joe_armstrong_book/websockets/ezwebframe/demos/clocks/clock1.css"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions