Want to take your software engineering career to the next level? Join the mailing list for career tips & advice Click here


Javascript client for ZeroMQ/NetMQ

Subscribe to updates I use JSMQ

Statistics on JSMQ

Number of watchers on Github 110
Number of open issues 5
Main language JavaScript
Average time to merge a PR about 1 hour
Open pull requests 0+
Closed pull requests 0+
Last commit over 5 years ago
Repo Created almost 6 years ago
Repo Last Updated about 2 years ago
Size 194 KB
Organization / Authorzeromq
Page Updated
Do you use JSMQ? Leave a review!
View open issues (5)
View JSMQ activity
View on github
Fresh, new opensource launches 🚀🚀🚀
Software engineers: It's time to get promoted. Starting NOW! Subscribe to my mailing list and I will equip you with tools, tips and actionable advice to grow in your career.
Evaluating JSMQ for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)


JSMQ is javascript client for ZeroMQ/NetMQ over WebSockets.

ZeroMQ and NetMQ don't have a WebSockets transport at the moment, however extensions already exist for NetMQ and CZMQ.

For browsers without WebSockets support (RFC6455) you can try to use web-socket-js.

Both JSMQ and NetMQ WebSockets are beta at the moment and the API and protocol will probably changed.

The JSMQ currently implement the dealer and subscriber patterns and the NetMQ WebSockets implement the router and publisher patterns.

You can download the JSMQ.JS file from this page or from nuget, just search for JSMQ and include prerelease.

Using JSMQ is very similar to using other high level binding of ZeroMQ. Following is small example:

    <script src="C:\Git\JSMQ\JSMQ.js"></script>
        var dealer = new JSMQ.Dealer();

        // we must wait for the dealer to be connected before we can send messages, any messages we are trying to send
        // while the dealer is not connected will be dropped
        dealer.sendReady = function() {
            document.getElementById("sendButton").disabled = "";

        var subscriber = new JSMQ.Subscriber();

        subscriber.onMessage = function (message) {

            // we ignore the first frame because it's topic

            document.getElementById("chatTextArea").value =
                document.getElementById("chatTextArea").value +
                message.popString()  + "\n";

        dealer.onMessage = function (message) {
            // the response from the server

        function send() {
            var message = new JSMQ.Message();

        <textarea id="chatTextArea" readonly="readonly"></textarea>
        <label>Message:</label><input id="messageTextBox" value="" />
        <button id="sendButton" disabled="disabled" onclick="javascript:send();">
JSMQ open issues Ask a question     (View All Issues)
  • about 5 years State of development.
  • over 5 years Work with ZMQ PHP server
  • almost 6 years Call for maintainers
  • almost 6 years authentication of ZWS sessions
  • almost 6 years message type tag encoding
  • almost 6 years requirement: binary safety of frames
JSMQ questions on Stackoverflow (View All Questions)
  • Protobuf over zeromq/zwssock to JSMQ/ProtoBuf.js messages are not fully recieved
JSMQ list of languages used
Other projects in JavaScript