fix for client library not taking port on cometd endpoint