Catalog108 / challenges / api/websocket/echo

WebSocket echo (polling shim)

beginner Matching curriculum →

What this challenge teaches

Teaches: POST a JSON body to /api/ws/echo; get it echoed in the response.

Expected output: POST any JSON; response contains {received: ...}.

Submit your scraper's JSON output to /challenges/api/websocket/echo/grade (grader endpoint is part of a later phase; URL is reserved now).

Real WebSocket isn't available on shared hosting. This endpoint accepts a JSON POST and echoes it, same data shape as the equivalent WS message would carry.

curl -sX POST -H "Content-Type: application/json" \
  -d '{"hello":"world"}' \
  "https://practice.scrapingcentral.com/api/ws/echo"