Did I find the right examples for you? yes no      Crawl my project      Python Jobs

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

src/c/i/circuits-bricks-0.3/circuits_bricks/web/dispatchers/websockets.py   circuits-bricks(Download)
# Module:   websockets
# Date:     26th February 2011
# Author:   James Mills, prologic at shortcircuit dot net dot au
from circuits.web.errors import HTTPError
from circuits_bricks.net.protocols.websocket import WebSocketCodec
        response.headers["Sec-WebSocket-Accept"] = accept 
        response.message = "WebSocket Protocol Handshake"
        codec = WebSocketCodec(request.sock, channel=self._wschannel)
        self._codecs[request.sock] = codec
        codec.register(self)

src/c/i/circuits-bricks-0.3/circuits_bricks/web/websocket.py   circuits-bricks(Download)
import base64
from circuits.web import client
from circuits_bricks.net.protocols.websocket import WebSocketCodec
try:
    from urllib.parse import urlparse