# How to use Claude to build a Go WebSocket proxy

Claude Code implemented a Go proxy exposing an HTTP request/callback interface over a WebSocket-only service, then tested it live and fixed review findings.

Agent: Claude (via Claude Code)
Tools: Claude Code, Go, curl
Category: Software & DevOps
Date: 2026-03-22

Outcome: The author reported completion in two hours, passing phase tests, live protocol debugging, and a race-condition fix after review.

## Steps

1. Read the service API documentation and discuss architecture and libraries.
2. Save a phased implementation plan in Claude Code plan mode.
3. Implement four phases with passing tests for each.
4. Run live service tests and debug protocol mistakes using curl.
5. Perform two fresh-context reviews and fix the race condition.

Human oversight: The author discussed architecture and library choices and requested live tests plus two fresh-context reviews.

Source: [wrs on Hacker News](https://news.ycombinator.com/item?id=47479761)

Canonical URL: https://agentsinuse.com/use-cases/claude-to-build-a-go-websocket-proxy/
