Call webhook on player disconnect (#396)

This commit is contained in:
UrbaneChimp
2025-04-25 02:58:43 +01:00
committed by GitHub
parent 9601ceedcb
commit cc5d77e4c8
3 changed files with 27 additions and 1 deletions
+4
View File
@@ -16,4 +16,8 @@ type ConnectionNotifier interface {
// NotifyConnected is called when the backend connection succeeded.
NotifyConnected(ctx context.Context,
clientAddr net.Addr, serverAddress string, playerInfo *PlayerInfo, backendHostPort string) error
// NotifyDisconnected is called when the backend connection terminates.
NotifyDisconnected(ctx context.Context,
clientAddr net.Addr, serverAddress string, playerInfo *PlayerInfo, backendHostPort string) error
}