phantom.js 870 Bytes


<!-- Start lib/phantom/bind.js -->

## bind()

Polyfill Function.prototype.bind

Based on the implementation found here:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind

<!-- End lib/phantom/bind.js -->

<!-- Start lib/phantom/emit.js -->

## emit(string|object)

Emit an event via JSON-RPC

### Params: 

* **event** *string|object* the event to emit

<!-- End lib/phantom/emit.js -->

<!-- Start lib/phantom/spooky.js -->

Start a Spooky server in PhantomJS

- `--transport TRANSPORT`, `-t TRANSPORT`: the transport the server should
  use to talk to clients. Available options are:

  - `stdio`: receive on stdin, transmit on stdout
  - `http`: receive on http, transmit on stdout

- `--port PORT`, `-p PORT`: the port the server should listen on when using
  the `http` transport

<!-- End lib/phantom/spooky.js -->