peer/addPeer
Attempts to connect to a peer through WebSockets using the given host and port. The request waits for the result of the connection before returning. If whitelist is true (by default) the node will continue to attempt connections even if the initial connection fails
Request
{
host: string
port: number | undefined
whitelist: boolean | undefined
}
Response
{
added: boolean
error: string | undefined
}