Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- runClient :: Credentials -> Settings -> Channel -> IO ()
Documentation
:: Credentials | AWS Credentials |
-> Settings | Session settings |
-> Channel | Transcribe channel |
-> IO () |
Start a WebSocket
client.
The client will probe the channel for incoming ByteString
, encode it in
the expected Event Stream
and transmit them to the AWS Transcribe endpoint.
When a response is received it will be written in the channel.
Sending an empty ByteString
will close the WebSocket
connection. Receiving any kind
of exception from AWS Transcribe
will also close the connection.