ChatServer icon indicating copy to clipboard operation
ChatServer copied to clipboard

每个回车键是一次命令

Open chinesejie opened this issue 11 years ago • 0 comments

如果我在server.py 里面做回车处理,如下: def read_message(self):
self._stream.read_until('\n', self.broadcast_messages)
这样每个回车键是一次命令。 那跟你这个 def read_message(self): self._stream.read_until_close( self.broadcast_message , self.broadcast_streaming_message) 相比, 优劣势何在

chinesejie avatar Nov 23 '14 19:11 chinesejie