Did you know ... Search Documentation:
Predicate read_frame/3
 read_frame(+Connection, +Stream, -Frame) is det[private]
Read a frame from a STOMP stream. On end-of-file, Frame is unified with the atom end_of_file. Otherwise it is a dict holding the cmd, headers (another dict) and body (a string)