'How to unsubscribe topic from PubSubRegistry in lagom
class WebSocketUtils(pubSub: PubSubRegistry)(implicit ec: ExecutionContext) {
def topic(id: String) = pubSub.refFor(TopicIdString)
def subscribe(id: String) = topic(id).subscriber
def unsubscribe(id:String) = ??
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
