fixed old reference to root.websocket