Did I find the right examples for you? yes no

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

        def patch_autobahn():
    from wsaccel.utf8validator import Utf8Validator
    from wsaccel.xormask import XorMaskerNull, XorMaskerSimple
    import autobahn.websocket

    autobahn.websocket.Utf8Validator = Utf8Validator
    autobahn.websocket.XorMaskerNull = XorMaskerNull
    autobahn.websocket.XorMaskerSimple = XorMaskerSimple
    autobahn.websocket.XorMaskerShifted1 = XorMaskerSimple
        


src/w/s/wsaccel-HEAD/examples/autobahn/echo/server.py   wsaccel(Download)
 
import wsaccel
wsaccel.patch_autobahn()
 
class EchoServerProtocol(WebSocketServerProtocol):

src/w/s/wsaccel-HEAD/examples/autobahn/echo/client.py   wsaccel(Download)
 
import wsaccel
wsaccel.patch_autobahn()
 
class EchoClientProtocol(WebSocketClientProtocol):

src/w/s/wsaccel-HEAD/bench/bench.py   wsaccel(Download)
            reactor.stop()
            return
        wsaccel.patch_autobahn()
        patched = True
        start_client()