'Arguments:
- ``socket``: An open socket that should be used for WebSocket
communciation.
- ``protocol``: not used yet.
- ``version``: The WebSocket spec version to follow (default is 76)
- ``handshake_reply``: Handshake message that should be sent to the
client when ``send_handshake()`` is called.
- ``handshake_sent``: Whether the handshake is already sent or not.
Set to ``False`` to prevent ``send_handshake()`` to do anything.'

def __init__(self, protocol):

    self.protocol = protocol
    self.closed = False
    self._message_queue = collections.deque()
