Made websockets work