ws connection setup