| Conditions | 2 |
| Total Lines | 16 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | # Copyright Pincer 2021-Present |
||
| 19 | @staticmethod |
||
| 20 | def uri() -> str: |
||
| 21 | """ |
||
| 22 | :return uri: |
||
| 23 | The GatewayConfig's uri. |
||
| 24 | """ |
||
| 25 | uri = ( |
||
| 26 | f"{GatewayConfig.socket_base_url}" |
||
| 27 | f"?v={GatewayConfig.version}" |
||
| 28 | f"&encoding={GatewayConfig.encoding}" |
||
| 29 | ) |
||
| 30 | |||
| 31 | if GatewayConfig.compressed(): |
||
| 32 | uri += f"&compress={GatewayConfig.compression}" |
||
| 33 | |||
| 34 | return uri |
||
| 35 | |||
| 43 |