Options
All
  • Public
  • Public/Protected
  • All
Menu

Module matchmaking

@skeldjs/matchmaking

This package contains a way to search for games hosted locally for the SkeldJS client. While you can install it on its own with npm install --save @skeldjs/matchmaking or yarn add @skeldjs/matchmaking, it is one package of a bigger project, skeldjs.

Index

Type aliases

Endpoint

Endpoint<Req, Res>: string & { __req: Req; __res: Res }

Represents an endpoint that can be used to type request and response bodies.

Type parameters

  • Req

  • Res

GetUserResponseBody

GetUserResponseBody: string

RequestGameListResponseBody

RequestGameListResponseBody: GameListingResponseBody[]

Variables

Const Endpoints

Endpoints: { FindGameCodeServer: (gameId: number) => Endpoint<never, FindGameCodeServerResponseBody>; FindHostServer: () => Endpoint<never, FindHostServerResponseBody>; GetToken: () => Endpoint<GetUserRequestBody, string>; RequestGameList: (mapBitfield: number, lang: GameKeyword, quickChat: QuickChatMode, platformFlags: number, numImpostors: number) => Endpoint<never, RequestGameListResponseBody> } = ...

All endpoints used by the Among Us HTTP matchmaker.

Type declaration

Functions

intToIpAddress

  • intToIpAddress(ip: number): string

Generated using TypeDoc