code: async def send(self, message: Union[str, bytes],
                     binary: bool=False,
                     compress: Optional[int]=None) -> None:
          
          if isinstance(message, str):
              message = message.encode('utf-8')
          if binary:
              await self._send_frame(message, WSMsgType.BINARY, compress)
          else:
              await self._send_frame(message, WSMsgType.TEXT, compress)
docs: Send a frame over the websocket with message as its payload.