JSDoc: Class: TCPListener

# Class: TCPListener

## server.TCPListener(port)

Bootstraps Marionette and handles incoming client connections.

Starting the Marionette server will open a TCP socket sporting the debugger transport interface on the provided |port|. For every new connection, a |server.TCPConnection| is created.

## Constructor

#### new TCPListener(port)

##### Parameters:

Name | Type | Description
--- | --- | ---
`port` | number | Port for server to listen to.

Source:
  - server.js, line 302

### Methods

#### driverFactory() → {GeckoDriver}

Function produces a GeckoDriver.

Determines application name to initialise the driver with.

Source:
  - server.js, line 325

##### Returns:

A driver instance.

Type
  GeckoDriver

#### start()

Bind this listener to |port| and start accepting incoming socket connections on |onSocketAccepted|.

The marionette.port preference will be populated with the value of |this.port|.

Source:
  - server.js, line 347