Skip to main content
Deno 2 is finally here 🎉️
Learn more
class MatchCallbacks
import { MatchCallbacks } from "https://deno.land/x/sptaki@1.2.0/callbacks/MatchCallbacks.d.ts";

Constructors

new
MatchCallbacks(
httpResponse: HttpResponseUtil,
jsonUtil: JsonUtil,
matchController: MatchController,
databaseServer: DatabaseServer,
)

Properties

protected
databaseServer: DatabaseServer
protected
httpResponse: HttpResponseUtil
protected
jsonUtil: JsonUtil
protected
matchController: MatchController

Methods

Handle client/match/group/invite/accept

cancelAllGroupInvite(
url: string,
sessionID: string,
): INullResponseData

Handle client/match/group/invite/cancel-all

cancelGroupInvite(
url: string,
sessionID: string,
): IGetBodyResponseData<boolean>

Handle client/match/group/invite/cancel

declineGroupInvite(
url: string,
sessionID: string,
): IGetBodyResponseData<any>

Handle client/match/group/invite/decline

deleteGroup(
url: string,
info: any,
sessionID: string,
): INullResponseData

Handle client/match/group/delete

endOfflineRaid(
url: string,
sessionID: string,
): INullResponseData

Handle client/match/offline/end

exitMatch(
url: string,
sessionID: string,
): INullResponseData
exitToMenu(
url: string,
sessionID: string,
): INullResponseData

Handle client/match/group/exit_from_menu

Handle client/raid/configuration-by-profile

Called periodically while in a group Handle client/match/group/status

getMetrics(
url: string,
info: any,
sessionID: string,
): IGetBodyResponseData<string>

Handle client/getMetricsConfig

Handle client/raid/configuration

Handle match/group/start_game

leaveGroup(
url: string,
sessionID: string,
): IGetBodyResponseData<boolean>
deprecated
putMetrics(
url: string,
sessionID: string,
): INullResponseData

Handle client/match/group/player/remove

sendGroupInvite(
url: string,
sessionID: string,
): IGetBodyResponseData<string>

Handle client/match/group/invite/send

serverAvailable(
url: string,
sessionID: string,
): IGetBodyResponseData<boolean>
startGroupSearch(
url: string,
sessionID: string,
): INullResponseData
stopGroupSearch(
url: string,
sessionID: string,
): INullResponseData
transferGroup(
url: string,
sessionID: string,
): IGetBodyResponseData<boolean>

Handle client/match/group/transfer

updatePing(
url: string,
sessionID: string,
): INullResponseData

Handle client/match/updatePing