Skip to content

Commit 495cf03

Browse files
Add comment to ws connection
1 parent 8552a51 commit 495cf03

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

engine/access/rest/websockets/connection.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ import (
44
"github.com/gorilla/websocket"
55
)
66

7+
// We wrap gorilla's websocket connection with interface
8+
// to be able to mock it in order to test the types dependent on it
9+
710
type WebsocketConnection interface {
811
ReadJSON(v interface{}) error
912
WriteJSON(v interface{}) error

0 commit comments

Comments
 (0)