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

139
Views
How to make two websocket connection on a single page using Timeme.js

I am using Timeme.js library's web socket functionality to connect my page with the socket. My requirement is to connect two sockets from different urls, in same page. Here is what I tried:-

 TimeMe.initialize({
        idleTimeoutInSeconds: 1000,
        websocketOptions: {
            websocketHost: "/firstSocketUrl"
        }
    }); 

TimeMe.websocket.on("firstSocketResponse",(data)=>{
            console.log("first socket response ->",data);
        });

 TimeMe.initialize({
            idleTimeoutInSeconds: 1000,
            websocketOptions: {
                websocketHost: "/secondSocketUrl"
            }
        }); 

TimeMe.websocket.on("secondSocketResponse",(data)=>{
            console.log("first socket response ->",data);
        })

But I am not receiving the backend response, is it possible to do something like this using Timeme.js kindle let me know? Thank you

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!