mirror of
https://github.com/diamondburned/arikawa.git
synced 2024-08-20 15:24:37 +00:00
This commit adds the above 2 methods mostly for the user's convenience. GatewayIsAlive will be useful when handling CloseError events and determining if the session was fatal without needing to handle Open(). GatewayError builds upon GatewayIsAlive and returns an error. While the user could call GatewayIsAlive and LastError themselves, doing so without locking is technically racy if another thread wants to reconnect. |
||
---|---|---|
.. | ||
shard | ||
session.go | ||
session_test.go |