Switch to websockets as transport layer