WriteFrame writes one length-prefixed JSON control frame.
func WriteFrame(w io.Writer, frameType FrameType, value any) (int, error)WriteFrame writes one length-prefixed JSON control frame. The byte count is meaningful on error: once any FLOW_OPEN byte is written, retry is ambiguous.