mirror of
https://github.com/diamondburned/arikawa.git
synced 2024-11-05 06:26:08 +00:00
723aa0e4c3
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 |