updated websocketClient to have a wg for handlers