code: def frameify(self, state, data):
          
  
          try:
              yield state.recv_buf + data
          except FrameSwitch:
              pass
          finally:
              state.recv_buf = ''
docs: Yield the data as a single frame.