Skip to content

Create a real-time event feed using websockets and Poxa #58

@skluck

Description

@skluck

Since the current frontend is PHP-based and bad at real-time features - we need to use a different technology to make the frontend more responsive.

Poxa is a standalone websocket/pusher service that can handle sending and syncing events from the server side (PHP) to the client side (JS). It is API-compatible with pusher.com.

Data flow

  1. Webserver proxies requests to VHOST/ws to Poxa
  2. JS connects to websocket endpoint.
  3. When events occur, the PHP triggers Poxa over an http API.
  4. Poxa broadcasts the events to any open channels to alert users that are connected.
[ POXA ] ←────→ [ JS FRONTEND ]     [ PHP BACKEND ]
   ↑                                      │
   └──────────────────────────────────────┘

  • Create a new page for prototyping - Admin-only audit feed
  • Add a simple service class for sending events to Poxa (See Pusher PHP client for reference)
  • Add event sending to various "audit actions" (CRUD actions for various resources like apps, targets, etc)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions