Hey there,
You can use the Wix Realtime API to develop this feature. Here are some tutorials to help you get started:
Happy coding!