• Joel Martin's avatar
    Pull websockify socket() static method. · 4f8c7465
    Joel Martin authored
    Pull websockify 46e2fbe.
    
    WebSocketServer.socket() is a static method takes a host and port and
    an optional connect parameter. If connect is not set then it returns
    a socket listening on host and port. If connect is set then
    a connection will be made host and port and the socket returned. This
    has IPv6 support like the addrinfo method it replaces.
    
    Also, prefer IPv4 resolutions if they are in the list. This can be
    overriden to prefer IPv6 resolutions for the same host using the
    optional prefer_ipv6 parameter.
    4f8c7465
websockify 9.38 KB