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

Add support for WebSockets and WebRTC DataChannels #14

Open
piranna opened this issue Jul 1, 2013 · 2 comments
Open

Add support for WebSockets and WebRTC DataChannels #14

piranna opened this issue Jul 1, 2013 · 2 comments

Comments

@piranna
Copy link

piranna commented Jul 1, 2013

Since API for inter-window communications is fairly similar to the one of WebSocket and DataChannels (send() instead of postMessage(), and both answering on 'message' events) it would be a simple and nice feature to expand pmrpc functionality to add it.

The use case I'm thinking about is to be able to use without any diference a functionality running localy on a WebWorker or on a remote server using WebSockets, or extending the inter-window functionality to diferent browsers running on diferent machines thanks to DataChannels.

@izuzak
Copy link
Owner

izuzak commented Jul 6, 2013

Hey @piranna! Sorry for not getting back sooner.

You have an awesome idea there! And actually -- it's something along those line that I've had as a goal back when I was developing pmrpc. Pmrpc was primarily a research project and adding cross-browser capabilities (either browser-browser or browser-server) was one of such researchy features I wanted to try. Back then - WebSockets and WebRTC didn't exist (or were just being roughly specified) so I didn't do it then, and kind of never got around to it once WS and WebRTC were stable technologies.

Anyway, I'd love to see such feature in pmrpc or as an extension/plugin of pmrpc. The biggest problem in this happening is that I currently don't have the time to hack on it. However, if you want to give it a shot - I'm very open to contributions! 👍 👍 👍 Also, the library itself could use some love (a rewrite) to make it more up-to-date and comprehensible.

Thanks again for the feedback, and do let me know if you want to dive in. :) 🎆

@piranna
Copy link
Author

piranna commented Jul 6, 2013

Well, my idea was to do it myself for my own project since several months ago, but since currently PeerConnection objects can't be created from inside an WebWorker I didn't think too much on it, and since now I don't have the time too I was thinking about delegate it to you since you knew more the library :-P Let's maintain this issue open until one of the two have time to do it ;-)

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

No branches or pull requests

2 participants