felixms / arma-rcon-class-php

A lightweight client for sending commands easily to a BattlEye server.
MIT License
46 stars 22 forks source link

RCON Console #35

Closed fruityrooty closed 5 years ago

fruityrooty commented 6 years ago

Hey buddy, i'm trying to build a live console in the browser to monitor chat. We've tried it using the socketLoop function, and using reconnect(); sadly enough without success, in the end we did manage to read one of the lines (the Rcon Admin logged in), but then it closes the socket. Do you have an example how to do this?

nerdalertdk commented 6 years ago

Answer should be in here

https://github.com/schaeferfelix/arma-rcon-class-php/issues/30

steffalon commented 5 years ago

Hi @fruityrooty, Did you use socketloop(-1)? Also you could try using SSE (Server-Send Event) method. Also maybe socket.io websocket could be interesting. If you create php websocket server and ARC as middleware, you can read realtime server output without any SSE downsides.

I made a SSE example here: #31

felixms commented 5 years ago

Issue closed because of inactivity.