Skip to content

Commit 6fa9795

Browse files
Updated README.md
1 parent 1aa8825 commit 6fa9795

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ string or an object containing:
9191
be necessary in a perfect world, but some versions of Windows doesn't
9292
like connecting to a server running a different version of the IPP
9393
protocol than it self (default: `true`)
94+
- `onerror` - Function. Callback for catching [`http.Server`](https://nodejs.org/api/http.html#http_class_http_server) errors. Useful for catching server initialization errors if there are network or configuration problems.
9495

9596
Note that the IPP standard specifies port 631 as the default IPP port,
9697
but most IPP clients are fine with connecting to another port.
@@ -165,6 +166,14 @@ An array of all jobs handled by the printer.
165166

166167
An instance of [`http.Server`](https://nodejs.org/api/http.html#http_class_http_server).
167168

169+
#### `printer.destroy`
170+
171+
A function to shut down the printer server and bonjour service.
172+
173+
```js
174+
printer.destroy();
175+
```
176+
168177
### Class: Job
169178

170179
A job is a readable stream containing the document to be printed. In
@@ -175,6 +184,7 @@ many cases this will be in Postscript format.
175184
```js
176185
function () {}
177186
```
187+
```
178188
179189
Emitted if the job is cancelled prior to completion.
180190

0 commit comments

Comments
 (0)