def send(self, obj): data = streamingjson.write(obj) TCPClient.send(self, data)
def write(self, obj): data = streamingjson.write(obj) self.send(data)