Enter to send·Shift+Enter new line
ReadFrame reads one frame and requires the caller's expected message type.
func ReadFrame(r io.Reader, expectedType FrameType, out any) error
r
io.Reader
expectedType
FrameType
out
any