parameters: (self, msg, **data)
return_statement: return self.append_message(json_encode(data), True)
docstring: Sends a JSON message to the client.
docstring_summary: Sends a JSON message to the client.
docstring_tokens: Sends a JSON message to the client .
function: def send_message(self, msg, **data):
          # type: (str, Any) -> bool
          """Sends a JSON message to the client."""
          data["msg"] = msg
          return self.append_message(json_encode(data), True)
function_tokens: def send_message ( self , msg , * * data ) : # type: (str, Any) -> bool data [ "msg" ] = msg return self . append_message ( json_encode ( data ) , True )