MCPcopy Create free account
hub / github.com/coder/aibridge / pingPayload

Method pingPayload

intercept/messages/streaming.go:571–573  ·  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

569
570// https://docs.anthropic.com/en/docs/build-with-claude/streaming#basic-streaming-request
571func (i *StreamingInterception) pingPayload() []byte {
572 return i.encodeForStream([]byte(`{"type": "ping"}`), "ping")
573}
574
575func (*StreamingInterception) encodeForStream(payload []byte, typ string) []byte {
576 // 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