diff options
author | Wim <wim@42.be> | 2023-03-11 18:14:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-11 18:14:49 +0100 |
commit | 89e2dbac1504d6df205938df750fa9eb15996afd (patch) | |
tree | 51c94428af04fc882c5209e85afead9cf9a825f5 /vendor/github.com/olahol/melody/errors.go | |
parent | 356ada872c0e1564097e2f8165931fb8c9ee9d23 (diff) | |
download | matterbridge-msglm-89e2dbac1504d6df205938df750fa9eb15996afd.tar.gz matterbridge-msglm-89e2dbac1504d6df205938df750fa9eb15996afd.tar.bz2 matterbridge-msglm-89e2dbac1504d6df205938df750fa9eb15996afd.zip |
Check client disconnect to exit for loop (api). Fixes #1983 (#2012)
Also update to latest melody upstream
Diffstat (limited to 'vendor/github.com/olahol/melody/errors.go')
-rw-r--r-- | vendor/github.com/olahol/melody/errors.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/vendor/github.com/olahol/melody/errors.go b/vendor/github.com/olahol/melody/errors.go new file mode 100644 index 00000000..d8be6157 --- /dev/null +++ b/vendor/github.com/olahol/melody/errors.go @@ -0,0 +1,10 @@ +package melody + +import "errors" + +var ( + ErrClosed = errors.New("melody instance is closed") + ErrSessionClosed = errors.New("session is closed") + ErrWriteClosed = errors.New("tried to write to closed a session") + ErrMessageBufferFull = errors.New("session message buffer is full") +) |