UNPKG

minigame-std

Version:

Mini Game Standard Development Library.

28 lines (16 loc) 570 B
[**minigame-std**](../README.md) *** [minigame-std](../README.md) / assertSafeSocketUrl # Function: assertSafeSocketUrl() ```ts function assertSafeSocketUrl(url): void ``` 断言传入的 WebSocket URL 是否为 `wss` 协议。 ## Parameters | Parameter | Type | Description | | ------ | ------ | ------ | | `url` | `string` | 需要断言的 WebSocket URL 字符串。 | ## Returns `void` ## Defined in [src/std/assert/assertions.ts:24](https://github.com/JiangJie/minigame-std/blob/8633d80114dee6c79033ec094d8233bd8263bedc/src/std/assert/assertions.ts#L24)