Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create backend and frontend for connecting scratchnet instances #25

Open
karel1980 opened this issue Feb 23, 2014 · 2 comments
Open

Create backend and frontend for connecting scratchnet instances #25

karel1980 opened this issue Feb 23, 2014 · 2 comments
Milestone

Comments

@karel1980
Copy link
Owner

The connection process goes like this:

  • Alice uses localhost:2000 to invite {Bob} for {chat}
  • Bob receives the invitation (browser pops this up)
  • Bob accepts the invitation (his manager starts comm.js and sends acceptance to Alice)
  • Alice receives the acceptance and starts comm.js
@karel1980 karel1980 added this to the 0.9 milestone Feb 23, 2014
@marc-portier
Copy link
Collaborator

yep.
I think you will need a 5th step though: after the service is started on Alice's side, you will need to communicate the allocated port back to Bob.

And I suggest we use some "connection-setup-id" to handle this messaging between Bob and Alice, just to make sure they could be simultanuously setting up multiple connections with multiple connection-peers...

@karel1980
Copy link
Owner Author

Yes. I was aiming to put that in the response body of Alice's last step, but because of the async nature of the .listen() call we might need an additional call

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants