Commit 348b79cf authored by Taddeüs Kroes's avatar Taddeüs Kroes

Test EchoServer now uses AsyncServer and deflate extensions

parent d707f2a0
......@@ -6,19 +6,18 @@ from os.path import abspath, dirname
basepath = abspath(dirname(abspath(__file__)) + '/..')
sys.path.insert(0, basepath)
from server import Server
from async import AsyncServer
from deflate_message import DeflateMessage
from deflate_frame import DeflateFrame
class EchoServer(Server):
class EchoServer(AsyncServer):
def onmessage(self, client, message):
Server.onmessage(self, client, message)
client.send(message)
if __name__ == '__main__':
EchoServer(('localhost', 8000),
#extensions=[DeflateFrame(no_context_takeover=True)],
extensions=[DeflateFrame()],
extensions=[DeflateMessage(), DeflateFrame()],
#ssl_args=dict(keyfile='cert.pem', certfile='cert.pem'),
loglevel=logging.DEBUG).run()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment