Beispiel #1
0
 def writeSequence(self, data):
     for d in data:
         d = normalize(d, self.factory.options['encoding'])
     RawWebSocket.write(self, "a" + json.dumps(data))
Beispiel #2
0
 def write(self, data):
     data = normalize(data, self.factory.options['encoding'])
     RawWebSocket.write(self, "a" + json.dumps([data]))
Beispiel #3
0
 def relayData(self, data):
     data = normalize(data, self.factory.options['encoding'])
     self.wrappedProtocol.dataReceived(data)
Beispiel #4
0
 def relayData(self, data):
     data = normalize(data, self.factory.options['encoding'])
     self.wrappedProtocol.dataReceived(data)
Beispiel #5
0
 def writeSequence(self, data):
     for d in data:
         d = normalize(d, self.factory.options['encoding'])
     RawWebSocket.write(self, "a"+json.dumps(data))
Beispiel #6
0
 def write(self, data):
     data = normalize(data, self.factory.options['encoding'])
     RawWebSocket.write(self, "a"+json.dumps([data]))