digitalinteraction / deconf-api-toolkit

A library for running decentralised virtual conferences
https://deconf-api.openlab.dev/
MIT License
2 stars 0 forks source link

Change `AuthSockets#deauth` to not throw when already signed out #33

Open robb-j opened 2 years ago

robb-j commented 2 years ago

It should ignore signed-out users. The reason for this method should be to ensure they are signed out, when a socket disconnects. A socket disconnecting cannot do very much to handle errors so it would need to be handled by implementors anyway.

https://github.com/digitalinteraction/deconf-api-toolkit/blob/2fb66b8341b80947027d59a211832dbcc67caf5c/src/interpret/auth-sockets.ts#L48-L54