How to iterate over and unsubscribe from all topics #1391
-
I am making a uWebSocket application where I have to be able to unsubscribe users from all subscribed topics. I am trying to do this with a lambda function (?) that iterates over all of a socket's subscribed topics, puts them into a std::vector (to avoid concurrent modification), and then unsubscribes from each one. Here's what I have so far:
Unfortunately, it's giving me an error: How do I make the above code work? Currently I am storing the subscriptions in the userData, but that isn't optimal. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
A university student working on project /home/thor/lsd/ brings me back 10 years, but I preferred mushrooms 🍄 😜 In any case - it's string_view not string |
Beta Was this translation helpful? Give feedback.
A university student working on project /home/thor/lsd/ brings me back 10 years, but I preferred mushrooms 🍄 😜
In any case - it's string_view not string