You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,6 +91,7 @@ string or an object containing:
91
91
be necessary in a perfect world, but some versions of Windows doesn't
92
92
like connecting to a server running a different version of the IPP
93
93
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.
94
95
95
96
Note that the IPP standard specifies port 631 as the default IPP port,
96
97
but most IPP clients are fine with connecting to another port.
@@ -165,6 +166,14 @@ An array of all jobs handled by the printer.
165
166
166
167
An instance of [`http.Server`](https://nodejs.org/api/http.html#http_class_http_server).
167
168
169
+
#### `printer.destroy`
170
+
171
+
A function to shut down the printer server and bonjour service.
172
+
173
+
```js
174
+
printer.destroy();
175
+
```
176
+
168
177
### Class: Job
169
178
170
179
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.
175
184
```js
176
185
function () {}
177
186
```
187
+
```
178
188
179
189
Emitted if the job is cancelled prior to completion.
0 commit comments