Safe Haskell | None |
---|---|
Language | Haskell2010 |
Provides a rather raw interface to the websocket events through a real-time Chan
- data Gateway = Gateway {}
- startGatewayThread :: Auth -> Chan String -> IO (Gateway, ThreadId)
- module Discord.Types
Documentation
Concurrency primitives that make up the gateway. Build a higher level interface over these
startGatewayThread :: Auth -> Chan String -> IO (Gateway, ThreadId) Source #
Create a Chan for websockets. This creates a thread that writes all the received Events to the Chan
module Discord.Types