• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

node-opcua / node-opcua / 25751058326
92%

Build:
DEFAULT BRANCH: master
Ran 12 May 2026 06:15PM UTC
Jobs 1
Files 1219
Run time 4min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

12 May 2026 05:29PM UTC coverage: 92.19% (+0.01%) from 92.177%
25751058326

push

github

erossignon
feat(client): propagate transportFactory option to ClientSecureChannelLayer

Threads the optional `transportFactory` added to
`ClientSecureChannelLayerOptions` in #1503 up to `OPCUAClientBaseOptions`,
so callers that construct clients through the standard
`OPCUAClient.create({...})` surface can substitute the transport
(e.g. a browser WebSocket transport) without reaching into the
secure-channel layer directly.

Purely additive:

- New optional field `transportFactory?: IClientTransportFactory` on
  `OPCUAClientBaseOptions`. When omitted, `ClientSecureChannelLayer`
  continues to fall back to `defaultClientTransportFactory` exactly as
  it does today.
- `ClientBaseImpl` stores the option in a new private
  `_transportFactory?: IClientTransportFactory` field and passes it
  through when constructing the channel.
- `node-opcua-transport` added as a direct dependency in
  `package.json` + `tsconfig.json` (previously transitive via
  `node-opcua-secure-channel`).

Unlocks the browser client package, which supplies a WebSocket-based
transport factory at construction time rather than requiring consumers
to construct a `ClientSecureChannelLayer` directly.

Test: `test/test_transport_factory_option.ts` — verifies
`OPCUAClient.create({ transportFactory })` is accepted at the type
level and at runtime, and that the option is optional (default path
preserved).

18612 of 22120 branches covered (84.14%)

14 of 14 new or added lines in 2 files covered. (100.0%)

5 existing lines in 1 file now uncovered.

162977 of 176783 relevant lines covered (92.19%)

468921.51 hits per line

Coverage Regressions

Lines Coverage ∆ File
5
85.56
-1.85% packages/node-opcua-client/source/client_session_keepalive_manager.ts
Jobs
ID Job ID Ran Files Coverage
1 25751058326.1 12 May 2026 06:15PM UTC 1219
92.19
GitHub Action Run
Source Files on build 25751058326
  • Tree
  • List 1219
  • Changed 7
  • Source Changed 3
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #25751058326
  • 50e254a6 on github
  • Prev Build on master (#25742810475)
  • Next Build on master (#25788724069)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc