MCPcopy Create free account
hub / github.com/middleapi/orpc / send

Function send

packages/durable-iterator/src/durable-object/websocket.ts:147–150  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

145 }
146
147 const send: WebSocket['send'] = (data) => {
148 internal.closeIfExpired() // should check before to ensure nothing send after expired
149 return original.send(data)
150 }
151
152 const proxy = new Proxy(original, {
153 get(_, prop) {

Callers 4

constructorMethod · 0.85
constructorMethod · 0.85
constructorMethod · 0.85
constructorMethod · 0.85

Calls 2

closeIfExpiredMethod · 0.80
sendMethod · 0.65

Tested by

no test coverage detected