Lines Matching refs:message
72 def message_received(self, client, server, message): argument
245 def send_message(self, message): argument
246 self.send_text(message)
248 def send_pong(self, message): argument
249 self.send_text(message, OPCODE_PONG)
251 def send_text(self, message, opcode=OPCODE_TEXT): argument
258 if isinstance(message, bytes):
259 message = try_decode_UTF8(message) # this is slower but ensures we have UTF-8
260 if not message:
263 … elif sys.version_info < (3,0) and (isinstance(message, str) or isinstance(message, unicode)):
265 elif isinstance(message, str):
268 …rning('Can\'t send message, message has to be a string or bytes. Given type is %s' % type(message))
272 payload = encode_to_UTF8(message)