Implement socketIO on location change