Update the server to always publish the 'online' event on each registration, update the client to only emit the 'online' event if the registration is new, or has updated data.