add scope to example WebSocket callback