MCPcopy Index your code
hub / github.com/coder/coder / pingPayload

Method pingPayload

aibridge/intercept/messages/streaming.go:668–670  ·  view source on GitHub ↗

https://docs.anthropic.com/en/docs/build-with-claude/streaming#basic-streaming-request

()

Source from the content-addressed store, hash-verified

666
667// https://docs.anthropic.com/en/docs/build-with-claude/streaming#basic-streaming-request
668func (i *StreamingInterception) pingPayload() []byte {
669 return i.encodeForStream([]byte(`{"type": "ping"}`), "ping")
670}
671
672func (*StreamingInterception) encodeForStream(payload []byte, typ string) []byte {
673 // bytes.Buffer writes to in-memory storage and never return errors.

Callers 1

ProcessRequestMethod · 0.95

Calls 1

encodeForStreamMethod · 0.95

Tested by

no test coverage detected