Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

196
Views
Equivalent of Stomp.over in server side code

Is there a backend (nodejs, java, etc) equivalent of Stomp.over? I want to mimic the client side code like below:

var socket = null;
var stompClient = null;
var connectCallback = function() {
  console.log(stompClient.ws._transport.url); //get autogenerated url and session id here
}
var websocketConnect = function(){
  socket = new SockJS("/websocket");
  stompClient = Stomp.over(socket);
  stompClient.connect({}, connectCallback);
}
websocketConnect();
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/sockjs-client/1.4.0/sockjs.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/stomp.js/2.3.3/stomp.min.js"></script>

This is to get the url returned by Stomp.over below, especially the generated sessionid:

wss://<base domain>/websocket/<sessionid>/

I want to use it for testing in k6, since it needs a wss url:

ws.connect(url, null, function (socket) {...}

The reason for this is I want to spawn different urls/sessions, mimicking different users opening their browsers and connecting to a base websocket url, then sending/receiving data to each using k6, thereby load testing it.

I have tried using node libraries such as stompjs and sockjs-client, but it differs in behavior, the object generated does not have an append a sessionid or similar, both just takes a full url in their constructor.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!