def Acc.frame
import bend-kube-runtime@0.2.0.0/src/exec.bend as Execimport Base
import bend-kube-runtime@0.2.0.0/src/ws.bend as W
202# One frame: a data frame starts with its channel; a continuation extends
203# the last one; close ends the stream; pings and pongs are dropped.
204def Acc.frame(a: Acc, f: W.Frame) -> Acc:
205 match a f:
206 case Acc{st, +o, +e, +s, +ch, cl} W.Frame{fin, +op, data}:
207 Acc.frame.go(st, o, e, s, ch, cl, op, data)