<p>Hi, i have a heavily modded tpcast and want to power the HMD on/off based on if someone connects/disconnects.
</p>
<p>the VH server doesn'T have an event for connects or disconnects sadly though.<br />
would it be possible to integrate that stuff into the event system so i can simply throw a script or two there?<br />
or at least update the docs if it is already in there
</p>
<p>kind regards<br />
niko_20010
</p>
.
It will always write to syslog when a new connection comes through. So you could watch that with a script.
I dont have a specific event at the moment for when a client connects/disconnects
thats what i already figured.
<p>thats what i already figured...
</p>
<p>any chance of getting such events in the future?</p>
.
Yes its a good idea and i will add them. They might go in the next build due in a week or so.
could you reply here as soon
<p>could you reply here as soon as the feature is implemented and released?</p>
.
Sure, ive done it now. Download version 4.1.4 and use
onClientConnect
onClientDisconnect
see herethanks, that was WAY sooner
<p>thanks, that was WAY sooner than i expected though<br />
thumbs up and keep up the great work!</p>
two problems i notice with
<p>two problems i notice with that build:<br />
1) the disconnect event seems not to fire<br />
2) the VH server segfaults (gets sent signal 11/SIGSEGV) on exit
</p>
.
Sorry it was a regression bug, its fixed now in 4.1.5 available on my website