Commit 6c9f58d
committed
Allow use of builtin node WebSocket when available. NFS
Node v21 and up have native WebSocket support. This change makes the
import of the external `ws` module conditional so it will only run on
older versions of node.
See #266761 parent e42e640 commit 6c9f58d
2 files changed
Lines changed: 10 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | | - | |
216 | | - | |
217 | 215 | | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
224 | 219 | | |
225 | | - | |
| 220 | + | |
| 221 | + | |
226 | 222 | | |
227 | 223 | | |
228 | 224 | | |
| |||
515 | 511 | | |
516 | 512 | | |
517 | 513 | | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
518 | 517 | | |
519 | 518 | | |
520 | 519 | | |
521 | | - | |
522 | 520 | | |
523 | 521 | | |
524 | 522 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments