Prepare frame for output as a length/frame stream.

def streamify(self, state, frame):
        """Prepare frame for output as a length/frame stream."""

        return '%s%s' % (self.fmt.pack(len(frame)), frame)