Detect if someone is typing via Realtime

Hey guys, to detect if someone is typing, I would like to implement the "... is typing" on the front end, and I am aware that I have to implement this via realtime websocket.
Between pubsub and presence, which of the two I need to look into if I want to implement it?
Was this page helpful?