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

nats-io / nats.go / 18397848784
85%

Build:
DEFAULT BRANCH: main
Ran 10 Oct 2025 06:04AM UTC
Jobs 1
Files 37
Run time 1min
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

10 Oct 2025 05:58AM UTC coverage: 84.981% (+0.07%) from 84.91%
18397848784

push

github

web-flow
Add options to send custom WebSocket headers on connect (#1919)

Example:

```go
	headers := make(http.Header)
	headers.Set("X-Client-ID", "go-example-client")
	headers.Set("X-Custom-Header", "static-value")

	// Connect to NATS server via WebSocket with custom headers
	nc, err := nats.Connect("ws://localhost:8080",
		nats.WebSocketConnectionHeaders(headers),
	)
```

Co-authored-by: Waldemar Quevedo <wally@nats.io>

27 of 33 new or added lines in 2 files covered. (81.82%)

8 existing lines in 3 files now uncovered.

14276 of 16799 relevant lines covered (84.98%)

32691.06 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
89.48
0.01% nats.go
4
87.86
-0.3% ws.go

Uncovered Existing Lines

Lines Coverage ∆ File
2
89.73
0.24% jetstream/publish.go
3
83.62
0.33% js.go
3
89.48
0.01% nats.go
Jobs
ID Job ID Ran Files Coverage
1 18397848784.1 10 Oct 2025 06:04AM UTC 37
84.98
GitHub Action Run
Source Files on build 18397848784
  • Tree
  • List 37
  • Changed 5
  • Source Changed 2
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #18397848784
  • 2ab81856 on github
  • Prev Build on main (#18373262077)
  • Next Build on main (#18400267382)
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