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

200
Views
Talk.js no da otra cuenta de usuario al usuario

Soy nuevo en Talk.js y estoy aprendiendo actualmente. Me encontré con un error donde uso la bandeja de entrada clásica y cada usuario que continúa usa la misma cuenta en el chat 1: 1. Ya cargué la biblioteca en mi HTML.

 Talk.ready.then(function () { var me = new Talk.User({ id: '111112', name: 'sus', email: 'alice@example.com', photoUrl: 'https://demo.talkjs.com/img/alice.jpg', welcomeMessage: 'Hello', }); window.talkSession = new Talk.Session({ appId: 'HIDDEN', me: me, }); var other = new Talk.User({ id: '111111', name: 'sussy', email: 'Sebastian@example.com', photoUrl: 'https://demo.talkjs.com/img/sebastian.jpg', welcomeMessage: "Hello" }); var conversation = talkSession.getOrCreateConversation( Talk.oneOnOneId(me, other) ); conversation.setParticipant(me); conversation.setParticipant(other); var inbox = talkSession.createInbox({ selected: conversation }); inbox.mount(document.getElementById('talkjs-container')); });
 <!-- minified snippet to load TalkJS without delaying your page this is basicly the contaner and the loading--> <script> (function(t,a,l,k,j,s){ s=a.createElement('script');s.async=1;s.src="https://cdn.talkjs.com/talk.js";a.head.appendChild(s) ;k=t.Promise;t.Talk={v:3,ready:{then:function(f){if(k)return new k(function(r,e){l.push([f,r,e])});l .push([f])},catch:function(){return k&&new k()},c:l}};})(window,document,[]); </script> <!-- container element in which TalkJS will display a chat UI --> <div id="talkjs-container" style="width: 90%; margin: 30px; height: 500px"> <i>Loading chat...</i> </div> <script src="script.js"></script>

No funciona porque no ingresé mi ID de aplicación real. Si desea ejecutarlo usted mismo, regístrese o inicie sesión en talkJs e inserte su ID. (Identificación de la aplicación de prueba donde está "BLOQUEADO")

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!