Client subscribes to one ticket
const socket = io('/tickets', { withCredentials: true });
socket.emit('subscribe', { ticketId });
socket.on('ticket.updated', (ticket) => {
queryClient.setQueryData(['ticket', ticket.id], ticket);
});A pushed event updates the same query cache a normal fetch would populate. Only the transport changes, not the ownership of state.