adding urls for socket in config and rendering config for client