View Full Version : How best to trap event if an NR client closes?
June 10th, 2009, 01:50 PM
I need girder to trigger an event if it detects that a client has closed.
Rather than looping the checking of connected clients is there a better way?
June 10th, 2009, 07:09 PM
You can use NetRemote.RegisterDisconnectCallback to add a function that will track a client disconnecting. This is documented in the Girder help file under Lua Library Reference\NetRemote Library at the bottom of the page.
June 11th, 2009, 01:55 AM
thanks - i'll give it a go
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.