Easyrtc is trying to use a websocket to talk to it's server.
You are trying to use your websocket to talk to presumably a different server using your own protocol.
You need to run the two different sockets on different ports. See easyrtc.setSocketUrl in the docs.
You should be getting some interesting errors.