
- HTML Tutorial
- HTML - Home
- HTML - Overview
- HTML - Basic Tags
- HTML - Elements
- HTML - Attributes
- HTML - Formatting
- HTML - Phrase Tags
- HTML - Meta Tags
- HTML - Comments
- HTML - Images
- HTML - Tables
- HTML - Lists
- HTML - Text Links
- HTML - Image Links
- HTML - Email Links
- HTML - Frames
- HTML - Iframes
- HTML - Blocks
- HTML - Backgrounds
- HTML - Colors
- HTML - Fonts
- HTML - Forms
- HTML - Embed Multimedia
- HTML - Marquees
- HTML - Header
- HTML - Style Sheet
- HTML - Javascript
- HTML - Layouts
- HTML References
- HTML - Tags Reference
- HTML - Attributes Reference
- HTML - Events Reference
- HTML - Fonts Reference
- HTML - ASCII Codes
- ASCII Table Lookup
- HTML - Color Names
- HTML - Entities
- HTML - Fonts Ref
- HTML - Events Ref
- MIME Media Types
- HTML - URL Encoding
- Language ISO Codes
- HTML - Character Encodings
- HTML - Deprecated Tags
How can I make a browser to browser (peer to peer) connection in HTML?
For the browser to browser connection, follow the below-given steps −
All the following library −
<script src = "http://cdn.peerjs.com/0.3/peer.js"></script>
Create a peer −
For creating a peer, you need to get a free API key.
var peer = new Peer('pick-an-id', {key: 'myapikey'});
Connect −
var conn = peer.connect('another-peers-id'); conn.on('open', function(){ conn.send('Welcome!'); });
- Related Articles
- Peer to Peer Computing
- Peer to Peer Networks
- What is Advanced Peer-to-Peer Networking (APPN)?
- Difference between Client-Server and Peer-to-Peer Network
- How to programmatically empty browser cache with HTML?
- Importance of Strong Peer Support in Entrepreneurship
- How can I get PHP to display the headers it received from a browser?
- How to know the browser language and browser platform in JavaScript?
- How can I turn on error information in my Web Browser?
- Ember.js browser support with HTML
- Execute a script when the browser starts to work online in HTML?
- Execute a script when the browser starts to work offline in HTML?
- How to perform browser navigations in Selenium?
- How to maximize the browser in Selenium?
- How to Resize Browser Window in WebDriver?

Advertisements