Giter Club home page Giter Club logo

Comments (3)

maxogden avatar maxogden commented on May 16, 2024

@shesmovedon that looks like an SDP to me, but I don't see any errors. If you're using the code from the usage example in the readme it should be this line that produces that:

console.log('SIGNAL', JSON.stringify(data))

But I don't see SIGNAL in yours, so maybe you have a different version of the code

from simple-peer.

heavens-night avatar heavens-night commented on May 16, 2024

@maxogden I'm using the code that appears on the example on the readme here, but the .js was "browserified" (that shouldn't matter right?). I still don't know why I'm not getting the offer to copy to my receiver. I replicated the example at this domain http://bkfwieohg.byethost11.com/index.html#1, you can test to see what I'm getting.

from simple-peer.

feross avatar feross commented on May 16, 2024

Your example works fine for me. You're probably mixing up the order of events. Try this:

  1. Visit http://bkfwieohg.byethost11.com/index.html#1 (this is the initiator)
  2. Copy the "offer text".
  3. Visit http://bkfwieohg.byethost11.com/index.html (this is not the initiator, note the lack of #1 in the url)
  4. Paste the offer text in the box, and click submit. Some "answer text" should appear.
  5. Copy the "answer text".
  6. Go back to the first page (the initiator), paste the answer text, and click submit.
  7. Check your console, you should see "CONNECT" and that some data got sent.

from simple-peer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.