Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GopherServer

Used to start a gopher server.

Hierarchy

  • GopherServer

Index

Constructors

Properties

Methods

Constructors

constructor

  • new GopherServer(host: string, port: number): GopherServer
  • Parameters

    • host: string

      The hostname that gets used to construct the root directory listing for all the plugins, and is assigned as the default for all GopherItems if no hostname is provided

    • port: number

      The port that gets used to construct the root directory listing for all the plugins, and is assigned as the default for all GopherItems if no port is provided

    Returns GopherServer

Properties

server

server: Server | null = null

Methods

addPlugin

start

  • start(): Promise<void>
  • This method starts the GopherServer, it will initialise all of your GopherPlugin's and start a TCP server on the port you have given.

    Returns Promise<void>

Generated using TypeDoc