0.3.6 • Published 4 years ago

@wirelineio/signal v0.3.6

Weekly downloads
1
License
GPL-3.0
Repository
github
Last release
4 years ago

Wireline Signal

Usage

$ PORT=3000 node index.js

Related Technologies

Offers and Answers

Many peer-to-peer networking protocols use an "offer/answer" scheme for negotiating communication between parties. For WebRTC, Session Description Protocol (SDP) is used, a technology borrowed from SIP. The offer/answer phase does not stream any content between the peers, it is exclusively used for conveying information about the peers' networking and capabilities so that direct communication can be successfully established.

Signals

The offers and answers have to be transmitted between the parties. Theoretically they could be conveyed in various forms (email, IM, carrier pigeon), but practically a mutually agreed "signaling server" is used most often. The signaling server is not used to transmit application data, it only passes the offers and answers between the prospective peers. For the messages to be passed successfully, the parties must be configured to use the same signaling server.

STUN

Session Traversal Utilities for NAT (STUN) is a protocol for helping clients on separate private networks communicate directly. A client will send a series of requests to a STUN server in an operation called "binding", and the server will report back to the client the IP address and port of each request as observed by the STUN server--a sort of grander version of the question, 'What is my IP?' These are collected by the client and added to the offer--or answer--as "candidates" for communication. There is no need for the parties to use the same STUN server. A STUN server requires few resources to run, and there are many freely available, public STUN servers.

TURN

It is quite possible that none of the candidates discovered by STUN establish successful communication between the parties. In that case, a Traversal Using Relay around NAT (TURN) server can be used to relay the traffic. The parties request a "media relay address", which is an IP/port pair on the TURN server itself. This is added to the list of candidates in the offer or answer, and is signaled to the other party in the usual way. Communicating via the media relay address on the TURN server proxies application data between the parties. Proxying all the network traffic is very resource intensive; as result there are few, if any, freely available TURN servers. As with STUN, it is not necessary that the parties be configured to use the same TURN server.

ICE

Interactive Connectivity Establishment (ICE) is the protocol standardizing the use of STUN and TURN for establishing connection between peers. It is often used as a general term describing this suite of protocols for P2P communication.

https://en.wikipedia.org/wiki/Interactive_Connectivity_Establishment

Wireline Infrastructure

Signal Server

https://signal.wireline.ninja

STUN/TURN

stun:stun.wireline.ninja:3478
turn:stun.wireline.ninja:3478
0.3.6

4 years ago

0.3.4

4 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.3.0

5 years ago

0.2.23

5 years ago

0.2.22

5 years ago

0.2.21

5 years ago

0.2.20

5 years ago

0.2.19

5 years ago

0.2.18

5 years ago

0.2.18-beta.0

5 years ago

0.2.17

5 years ago

0.2.17-alpha.1

5 years ago

0.2.17-alpha.0

5 years ago

0.2.16

5 years ago

0.2.14

5 years ago

0.2.13

5 years ago

0.2.12

5 years ago

0.2.11

5 years ago

0.2.10

5 years ago

0.2.9

5 years ago

0.2.9-beta.2

5 years ago

0.2.9-beta.1

5 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.2.0-alpha.2

5 years ago

0.2.0-alpha.1

5 years ago

0.2.0-alpha.0

5 years ago

0.1.36

5 years ago

0.1.34

5 years ago

0.1.33

5 years ago

0.1.21

5 years ago

0.1.18

5 years ago

0.1.14

5 years ago

0.1.14-alpha.5

5 years ago

0.1.14-alpha.4

5 years ago

0.1.14-alpha.3

5 years ago

0.1.14-alpha.2

5 years ago

0.1.14-alpha.1

5 years ago

0.1.14-alpha.0

5 years ago

0.1.13

5 years ago