Coder Social home page Coder Social logo

macawls / bomba-api Goto Github PK

View Code? Open in Web Editor NEW
1.0 0.0 0.0 125 KB

A utility service for my game - Bomba

Home Page: https://bomba.macawls.dev/

License: MIT License

JavaScript 55.57% HTML 44.43%
background-jobs cloudflare-workers hono serverless supabase

bomba-api's Introduction

License

Bomba API

apu

An API to prevent players from joining empty relay instances


Technologies

Purpose

Circumvent the issue of a Unity Relay Allocation not shutting down shortly after a host player disconnects. This only applies to using websockets(wss) for transport.

Problem

The use of Unity's Lobby Service is unnecessary for my game's requirements.

Currently, with how relay works with wss, client players can join an empty relay instance. After a duration (usually around 1 minute) they the relay instance will shutdown and clients will be disconnected.

How does it work?

Join codes are deleted after a specified duration set in the wrangler.toml.

Auth

The API will only work with an authentication key of which only I have access to.

Running Locally

Start the wrangler dev server

npm run dev

In a separate terminal, run the trigger.dev client

npm run trigger-client

bomba-api's People

Contributors

macawls avatar

Stargazers

Rafaa Selmi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.