Constructor
new PrevSocket(name, node)
Construct a new PrevSocket
Parameters:
Name | Type | Description |
---|---|---|
name |
string | Name of the socket |
node |
Node | Parent node |
- Source:
Classes
Members
(private) peers
List of (next) peer sockets
- Source:
Methods
clone()
Clone the socket
- Source:
connect(socket)
Connect this socket to a next socket
Parameters:
Name | Type | Description |
---|---|---|
socket |
Socket | The next socket to connect |
- Source:
disconnect(socket)
Disconnect this socket from a next socket
Parameters:
Name | Type | Description |
---|---|---|
socket |
Socket | The next socket to disconnect |
- Source: