nilinswap / peer-connect Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://nilinswap.github.io/peer-connect/
License: MIT License
Home Page: https://nilinswap.github.io/peer-connect/
License: MIT License
What to do?
Give a react version of nilinswap/peer-connect.
Use react framework for frontend to make peer-connect work. so basically the main.js that is exported to a foreign site to use our peer-connect feature...that main.js should be generated in react framework. It is only expected to use reactjs framework but the source code can be just written in typescript (or javascript.) In fact, one should try to use same js code for nilinswap/peer-connect rather than writing a new version in reactjs.
feasible?
It can be a stupid task which is not possible. so I have no idea of this. At the end, we would learn something.
expected pace?
It's very open-ended task therefore feel free to do this in small experiments and checkpoints and we will discuss the results before going ahead.
why?
summary
use this link to start from a boiler plate. You already know the js code for peer-connect. What minimum changes should you do to look the boiler-plate page look and work like peer-connect?
What to do?
create a custom event say CE. on trigger, this will save the remotePeerId. Instead of connect button directly setting it. let connect button fire this event. This is a subProblem of event-based issue for easy-pluggable.
why?
this will be used. next, we will create a server to store identifier - peerid map. We will provide two apis. one will be on singleId(like gameId) and other will be on (remoteClientPeerId) both are behaviourly same and would hit the server and get the peerjs remotePeerId. on successful reply, we will fire CE and remotePeerId is saved and boom now it should work.
Resources?
custom events in js
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.