Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: MuOnlineHttpApi – Monitoreo de eventos PvP en tiempo real vía HTTP  (Visto 88 veces)

cybercomaqp and 3 Guests are viewing this topic.

Online Xysad Posteado: March 02, 2026, 09:53:58 PM

  • Php Coder
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 294
  • Gracias recibida: 1532
  • ar
Hola comunidad,

Presentamos MuOnlineHttpApi, un proyecto que permite monitorear PvP en tiempo real desde MU Online. Cada kill/death se registra en memoria y se expone vía HTTP para que un frontend pueda mostrarlo al instante.

Cómo funciona (diagrama de flujo):
GameServer: detecta un evento PvP
→ HttpApi: procesa y guarda el evento en memoria
→ Servidor HTTP: escucha en el puerto 8080
→ Frontend / App: consulta /events y muestra PvP en tiempo real
Nota: La API escucha en todas las interfaces disponibles, por lo que puede ser accesible desde otras PCs si el puerto está abierto y configurado correctamente. Para producción conviene agregar seguridad (token, IPs permitidas, HTTPS).

Ejemplo de JSON entregado por la API:
Code: [Select]
{
  "events": [
    { "killerName": "DarkKnight", "deadName": "ElfArcher" },
    { "killerName": "MagicWizard", "deadName": "SoulMaster" }
  ]
}

Video demo:


Link del proyecto:


Gracias :D <3

Gracias:


Offline NghienMU #1 Posteado: March 02, 2026, 11:13:06 PM

  • 0 puntos por ventas
  • *
  • Rank: Liga mayor
  • Posts: 197
  • Gracias recibida: 63
  • vn

Gracias:


Online Xysad #2 Posteado: March 02, 2026, 11:25:09 PM

  • Php Coder
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 294
  • Gracias recibida: 1532
  • ar
What about security?

Good question. Right now the API is intentionally minimal because it was designed as an internal event layer for a future external client (web/app companion), not as a public-facing service.
For production use, it should be placed behind a firewall and extended with authentication (token/API key), IP filtering and optionally HTTPS.
This release focuses on the in-memory PvP event architecture; security hardening would be the next step depending on deployment scenario.


Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate


 

Related Topics

  Subject / Started by Replies Last post
1 Replies
3313 Views
Last post November 13, 2016, 06:46:17 PM
by Hector
3 Replies
2597 Views
Last post April 08, 2018, 02:52:50 PM
by Maribao
3 Replies
3606 Views
Last post July 09, 2018, 04:28:52 PM
by 4RM4G3D0N
0 Replies
703 Views
Last post December 23, 2020, 05:43:41 PM
by epa123