Coder Social home page Coder Social logo

Comments (6)

michelle avatar michelle commented on April 28, 2024

@ericz Any ideas off the top of your head? Seems either token is conflicting or MongoDB error.

from peerjs-server.

ericz avatar ericz commented on April 28, 2024

When opening connection with XHR, if ID is taken, HTTP-ERROR is emitted
instead of ID-TAKEN. Only websocket emits ID-taken. this is so people don't
get two ID taken messages when connection.

2nd connection in your examples gets the HTTP-ERROR because id is taken.

On Wed, Mar 6, 2013 at 1:12 AM, Michelle Bu [email protected]:

@ericz https://github.com/ericz Any ideas off the top of your head?
Seems either token is conflicting or MongoDB error.


Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-14489376
.

510-691-3951
http://ericzhang.com

from peerjs-server.

michelle avatar michelle commented on April 28, 2024

But no ID is passed in for the second Peer, so the server should assign one that isn't taken. This is still a pretty bad bug IMO, since I can't create multiple Peers at the same time. And I never get an ID-TAKEN message either.

This problem does not happen if I create peer2 on the open event of peer1.

from peerjs-server.

ericz avatar ericz commented on April 28, 2024

oh shit didnt realize no id was passed in

On Wed, Mar 6, 2013 at 1:29 AM, Michelle Bu [email protected]:

But no ID is passed in for the second Peer, so the server should assign
one that isn't taken. This is still a pretty bad bug IMO, since I can't
create multiple Peers at the same time. And I never get an ID-TAKEN message
either.

This problem does not happen if I create peer2 on the open event of peer1.


Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-14490041
.

510-691-3951
http://ericzhang.com

from peerjs-server.

michelle avatar michelle commented on April 28, 2024

Yeah I will look into it more.

from peerjs-server.

ericz avatar ericz commented on April 28, 2024

It looks like the /id GET request that asks the server for ID is being
cached.

Need to send explicity cache control headers from server in /id response to
prevent caching

On Wed, Mar 6, 2013 at 1:30 AM, Eric Zhang [email protected] wrote:

oh shit didnt realize no id was passed in

On Wed, Mar 6, 2013 at 1:29 AM, Michelle Bu [email protected]:

But no ID is passed in for the second Peer, so the server should assign
one that isn't taken. This is still a pretty bad bug IMO, since I can't
create multiple Peers at the same time. And I never get an ID-TAKEN message
either.

This problem does not happen if I create peer2 on the open event of peer1
.


Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-14490041
.

510-691-3951
http://ericzhang.com

510-691-3951
http://ericzhang.com

from peerjs-server.

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.