Skip to content

Commit 336ed88

Browse files
committed
Added readme instructions on configuring and testing observability
1 parent 97ada73 commit 336ed88

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ There are currently no plans of supporting OCPP-S.
1414

1515
## Installation
1616

17-
Go version 1.13+ is required.
17+
Go version 1.22+ is required.
1818

1919
```sh
2020
go get github.com/lorenzodonini/ocpp-go
@@ -95,6 +95,7 @@ The websocket package supports configuring ping pong for both endpoints.
9595

9696
By default, the client sends a ping every 54 seconds and waits for a pong for 60 seconds, before timing out.
9797
The values can be configured as follows:
98+
9899
```go
99100
cfg := ws.NewClientTimeoutConfig()
100101
cfg.PingPeriod = 10 * time.Second
@@ -104,6 +105,7 @@ websocketClient.SetTimeoutConfig(cfg)
104105

105106
By default, the server does not send out any pings and waits for a ping from the client for 60 seconds, before timing out.
106107
To configure the server to send out pings, the `PingPeriod` and `PongWait` must be set to a value greater than 0:
108+
107109
```go
108110
cfg := ws.NewServerTimeoutConfig()
109111
cfg.PingPeriod = 10 * time.Second

0 commit comments

Comments
 (0)