(server, secure=None)
| 11 | |
| 12 | |
| 13 | def get_uri(server, secure=None): |
| 14 | if secure is None: |
| 15 | secure = server.server._ssl_context is not None # hack |
| 16 | protocol = "wss" if secure else "ws" |
| 17 | host, port = get_host_port(server) |
| 18 | return f"{protocol}://{host}:{port}" |
| 19 | |
| 20 | |
| 21 | async def handler(ws): |
searching dependent graphs…