PixelPlaceJS-new - v3.4.3
    Preparing search index...

    Class PixelPlace

    Contains all bots and handles them.

    Index

    Constructors

    Properties

    bots: Bot[]

    Methods

    • Parameters

      • foreach: (bot: Bot) => void

      Returns Promise<void[]>

    • Connects all bots

      Returns Promise<void[]>

      A promise that resolves upon the bots connecting.

    • Initiates all the bots; this runs bot.Init() which delegates to bot.Connect() and bot.Load()

      Returns Promise<void[]>

      A promise that resolves upon the bots initiating fully.

    • Loads all bots

      Returns Promise<void[]>

      A promise that resolves upon the bots loading.

    • In the event that cloudflare is turned on or something, you can do stuff like put cloudflare clearance here.

      Parameters

      • headers: HeadersFunc

        A function that receives the type and returns header object.

      Returns PixelPlace

      this

    • Starts a websocket server for userscript browser connection

      Parameters

      • port: number

        Port of the socket

      • settings: BrowserSettings

      Returns Promise<SocketHook>