core: Added websocket upgrade.