Websocket events will work if the user is active on the app. This is required since you need to update the UI in realtime.
You can also try using Firebase to send push notifications if you want to send events when the user is not active on the app.
Alternatively, you can also use Firebase to send both push notifications and in-app notifications - but websocket events would be better in terms of performance.