Options
All
  • Public
  • Public/Protected
  • All
Menu

switchboard.js

Index

Variables

Const DEFAULT_TRACKERS

DEFAULT_TRACKERS: string[] = ['wss://tracker.files.fm:7073/announce','wss://tracker.openwebtorrent.com',]

The default list of tracker URLs to use for matchmaking. To change these, pass a new list in at SBClientOptions.trackers.

Functions

enableLogging

  • enableLogging(enabled: boolean, callback?: any): void
  • Enable/disable library-wide debug logging. Optionally provide your own custom logging callback.

    Parameters

    • enabled: boolean

      If logging should be enabled.

    • Default value callback: any = console.debug

      Pass a custom function if you wish to override the default console.debug behavior.

    Returns void

Generated using TypeDoc