(
url: string,
options?: {
readonly closeCodeIsError?: (code: number) => boolean
}
)
| 523 | * @category constructors |
| 524 | */ |
| 525 | export const makeWebSocketChannel = <IE = never>( |
| 526 | url: string, |
| 527 | options?: { |
| 528 | readonly closeCodeIsError?: (code: number) => boolean |
| 529 | } |
| 530 | ): Channel.Channel< |
| 531 | Chunk.Chunk<Uint8Array>, |
| 532 | Chunk.Chunk<Uint8Array | string | CloseEvent>, |
| 533 | SocketError | IE, |
| 534 | IE, |
| 535 | void, |
| 536 | unknown, |
| 537 | WebSocketConstructor |
| 538 | > => |
| 539 | Channel.unwrapScoped( |
| 540 | Effect.map(makeWebSocket(url, options), toChannelWith<IE>()) |
| 541 | ) |
| 542 | |
| 543 | /** |
| 544 | * @since 1.0.0 |
nothing calls this directly
no test coverage detected