minigame-std
Version:
Mini Game Standard Development Library.
26 lines (15 loc) • 567 B
Markdown
[**minigame-std**](../README.md)
***
[minigame-std](../README.md) / assertSafeSocketUrl
# Function: assertSafeSocketUrl()
```ts
function assertSafeSocketUrl(url): void
```
Defined in: [src/std/assert/assertions.ts:24](https://github.com/JiangJie/minigame-std/blob/fdb22241c47c2e98329a4c62befde728957e03ee/src/std/assert/assertions.ts#L24)
断言传入的 WebSocket URL 是否为 `wss` 协议。
## Parameters
| Parameter | Type | Description |
| ------ | ------ | ------ |
| `url` | `string` | 需要断言的 WebSocket URL 字符串。 |
## Returns
`void`