new Bonjour.Peer()
- Source:
- network.js, line 112
Properties:
Name | Type | Description |
---|---|---|
name |
string |
Methods
-
getSocket() → {Socket}
-
Get a socket for to the peer.
- Source:
- network.js, line 136
Returns:
A new socket. Call connect() to connect it to the peer.
- Type
- Socket
-
resolve(callback)
-
Find a hostname+port combination for this peer.
You should not store the hostname and port in a persistent storage, as it might change over time. Store the name instead and call Bonjour.resolve().
Parameters:
Name Type Description callback
resolveCallback Callback called when a hostname+port combination is found.
- Source:
- network.js, line 128