@speakeasy-sdks/hc-sdk
v1.13.1
Published
<div align="center"> <img src="https://user-images.githubusercontent.com/6267663/235110661-00e586cc-7489-4daf-82e8-7ae3c2c7143e.svg" width="350px"> <h1>Typescript SDK</h1> <p>Serverless cloud hosting for multiplayer games</p> <a href="https:
Downloads
30
Maintainers
Keywords
Readme
SDK Installation
NPM
npm add @speakeasy-sdks/hc-sdk
Yarn
yarn add @speakeasy-sdks/hc-sdk
SDK Example Usage
import { Hathora } from "@speakeasy-sdks/hc-sdk";
import { CreateAppResponse } from "@speakeasy-sdks/hc-sdk/dist/sdk/models/operations";
const sdk = new Hathora();
sdk.apps.create({
appName: "corrupti",
authConfiguration: {
anonymous: {},
google: {
clientId: "provident",
},
nickname: {},
},
}, {
auth0: "",
}).then((res: CreateAppResponse) => {
if (res.statusCode == 200) {
// handle response
}
});
Available Resources and Operations
apps
auth
builds
deployment
discovery
lobby
- create
- ~~deprecatedCreateLocalLobby~~ - :warning: Deprecated
- ~~deprecatedCreatePrivateLobby~~ - :warning: Deprecated
- ~~deprecatedCreatePublicLobby~~ - :warning: Deprecated
- ~~deprecatedV1CreatePrivateLobby~~ - :warning: Deprecated
- ~~deprecatedV1CreatePublicLobby~~ - :warning: Deprecated
- ~~deprecatedV1ListActivePublicLobbies~~ - :warning: Deprecated
- getLobbyInfo
- listActive
- setLobbyState
logs
metrics
processes
rooms
Maturity
This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning usage to a specific package version. This way, you can install the same version each time without breaking changes unless you are intentionally looking for the latest version.
Contributions
While we value open-source contributions to this SDK, this library is generated programmatically. Feel free to open a PR or a Github issue as a proof of concept and we'll do our best to include it in a future release !