Code Monkey home page Code Monkey logo

ps2-map-listener's Introduction

PS2 Map Event Listener

GitHub Workflow Status CodeFactor Grade

This component is responsible for listening to WebSocket events received from the API and preparing the data for use in other components.

What it does

This script subscribes to events through Auraxium, which takes care of maintaining the streaming connection and handling disconnects or other API errors.

The events received from the PS2 API are generally too specific for our needs, lack important data and do not match our requirements. They are therefore processed and split up or combined into our own internal event definitions, called "Blips".

These Blips are then inserted into the separate event schema of the database, which mostly acts as intermediate storage between components. The relevant database tables are replicated via Python data classes in the backend repository, whose definition can be found here.

Status

The listener is currently stable and ready for development use.

Implemented Blips

  • PlayerBlip -- That player is definitely here right now
  • RelativePlayerBlip -- These two players are close to each other
  • PlayerLogout -- This player logged out and can be purged from the population tracker
  • BaseControl -- A base has flipped ownership, for any reason (including unlocks or other non-capture events)

Missing capability

  • Subscription monitoring
    • Check event frequency, detect events going missing
    • Dropping and recreating stale subscriptions
  • Detecting API downtime and automatically restarting when it becomes available again

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.