WebSocketable enables you to choose the websocket lib you want to use. Such as you can easily wrap gorilla/websocket and use it as the transport layer.
| 36 | // WebSocketable enables you to choose the websocket lib you want to use. |
| 37 | // Such as you can easily wrap gorilla/websocket and use it as the transport layer. |
| 38 | type WebSocketable interface { |
| 39 | // Send text message only |
| 40 | Send(data []byte) error |
| 41 | // Read returns text message only |
| 42 | Read() ([]byte, error) |
| 43 | } |
| 44 | |
| 45 | // Client is a devtools protocol connection instance. |
| 46 | type Client struct { |
no outgoing calls
no test coverage detected
searching dependent graphs…