(
url: string,
options?: {
readonly disablePing?: boolean
}
)
| 426 | * @category construtors |
| 427 | */ |
| 428 | export const fromWebSocket = ( |
| 429 | url: string, |
| 430 | options?: { |
| 431 | readonly disablePing?: boolean |
| 432 | } |
| 433 | ): Effect.Effect<void, never, Scope.Scope | EventLogEncryption | EventLog | Socket.WebSocketConstructor> => |
| 434 | Effect.gen(function*() { |
| 435 | const socket = yield* Socket.makeWebSocket(url) |
| 436 | return yield* fromSocket(options).pipe( |
| 437 | Effect.provideService(Socket.Socket, socket) |
| 438 | ) |
| 439 | }) |
| 440 | |
| 441 | /** |
| 442 | * @since 1.0.0 |
no test coverage detected
searching dependent graphs…