added sample event handler for any device connecting to server