(value: string)
| 49 | event.kind === "text" ? event.body : new Uint8Array(Buffer.from(event.body, "base64")) |
| 50 | |
| 51 | const jsonOrText = (value: string) => Option.match(decodeJson(value), { onNone: () => value, onSome: canonicalizeJson }) |
| 52 | |
| 53 | const assertClientEvent = (actual: string, expected: WebSocketEvent | undefined, index: number, asJson: boolean) => |
| 54 | Effect.sync(() => { |