Skip to content

Commit

Permalink
Fix typo in Events section of the readme file (shurcooL#63)
Browse files Browse the repository at this point in the history
* Fix typo in Events section of the readme file
  • Loading branch information
Rafael Vanoni authored Dec 16, 2022
1 parent 4e08b2d commit 7943bd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ client.OnConnected(fn func())
// OnDisconnected event is triggered when the websocket client was disconnected
client.OnDisconnected(fn func())

// OnConnected event is triggered when there is any connection error. This is bottom exception handler level
// OnError event is triggered when there is any connection error. This is bottom exception handler level
// If this function is empty, or returns nil, the error is ignored
// If returns error, the websocket connection will be terminated
client.OnError(onError func(sc *SubscriptionClient, err error) error)
Expand Down
2 changes: 1 addition & 1 deletion subscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func (sc *SubscriptionClient) WithReadLimit(limit int64) *SubscriptionClient {
return sc
}

// OnConnected event is triggered when there is any connection error. This is bottom exception handler level
// OnError event is triggered when there is any connection error. This is bottom exception handler level
// If this function is empty, or returns nil, the error is ignored
// If returns error, the websocket connection will be terminated
func (sc *SubscriptionClient) OnError(onError func(sc *SubscriptionClient, err error) error) *SubscriptionClient {
Expand Down

0 comments on commit 7943bd6

Please sign in to comment.