Is it possible to communicate with NSQ over a websocket connection from a web app running in a user's browser?
Any built-in NSQ features or third-party library suggestions would be of a great help.
Is it possible to communicate with NSQ over a websocket connection from a web app running in a user's browser?
Any built-in NSQ features or third-party library suggestions would be of a great help.
Copyright © 2021 Jogjafile Inc.
As of recently there is the WSQ library that solves the task of communicating to NSQ over the websocket connection.
It allows to define message encoding/decoding logic on Websocket and NSQ sides separately. Also, WSQ supports injecting authentication and authorization logic, controlling user's access to subscribing and publishing to topics, and incoming message filtering based on message's content.
Creating WSQ server example: