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