code: def make_close_message(code=1000, message=b''):
      
      return _make_frame(struct.pack('!H%ds' % len(message), code, message),
                         opcode=OPCODE_CLOSE)
docs: Close the websocket, sending the specified code and message.