File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff 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
2020go get github.com/lorenzodonini/ocpp-go
@@ -95,6 +95,7 @@ The websocket package supports configuring ping pong for both endpoints.
9595
9696By default, the client sends a ping every 54 seconds and waits for a pong for 60 seconds, before timing out.
9797The values can be configured as follows:
98+
9899``` go
99100cfg := ws.NewClientTimeoutConfig ()
100101cfg.PingPeriod = 10 * time.Second
@@ -104,6 +105,7 @@ websocketClient.SetTimeoutConfig(cfg)
104105
105106By default, the server does not send out any pings and waits for a ping from the client for 60 seconds, before timing out.
106107To configure the server to send out pings, the ` PingPeriod ` and ` PongWait ` must be set to a value greater than 0:
108+
107109``` go
108110cfg := ws.NewServerTimeoutConfig ()
109111cfg.PingPeriod = 10 * time.Second
You can’t perform that action at this time.
0 commit comments