added updateBeacon to server and client
added updateBeacon to server and client