Now i got WebSocket to work.
Next is Ajax.