Comparing version 0.10.1 to 0.10.2
@@ -7,3 +7,3 @@ import { Callback, Peer } from './types'; | ||
private latestWarning; | ||
constructor(ssb: any); | ||
constructor(ssb: any, cfg: any); | ||
private setupConnectionListeners; | ||
@@ -10,0 +10,0 @@ private onConnectingFailed; |
@@ -81,3 +81,3 @@ "use strict"; | ||
let Gossip = class Gossip { | ||
constructor(ssb) { | ||
constructor(ssb, cfg) { | ||
this.peers = () => { | ||
@@ -205,3 +205,5 @@ if (this.latestWarning + 10e3 < Date.now()) { | ||
this.setupConnectionListeners(); | ||
this.conn.start(); | ||
if (cfg.conn && cfg.conn.autostart !== false) { | ||
this.conn.start(); | ||
} | ||
} | ||
@@ -208,0 +210,0 @@ setupConnectionListeners() { |
{ | ||
"name": "ssb-conn", | ||
"description": "SSB plugin for establishing and managing peer connections", | ||
"version": "0.10.1", | ||
"version": "0.10.2", | ||
"homepage": "https://github.com/staltz/ssb-conn", | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
@@ -93,3 +93,3 @@ import {ListenEvent as HubEvent} from 'ssb-conn-hub/lib/types'; | ||
constructor(ssb: any) { | ||
constructor(ssb: any, cfg: any) { | ||
this.ssb = ssb; | ||
@@ -101,3 +101,5 @@ this.notify = Notify(); | ||
this.setupConnectionListeners(); | ||
this.conn.start(); | ||
if (cfg.conn && cfg.conn.autostart !== false) { | ||
this.conn.start(); | ||
} | ||
} | ||
@@ -104,0 +106,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
132207
2391