split websocket and path configuration code