()
| 833 | } |
| 834 | |
| 835 | func (c *wsNetConn) Close() error { |
| 836 | defer c.cancel() |
| 837 | return c.Conn.Close() |
| 838 | } |
| 839 | |
| 840 | // WebsocketNetConn wraps websocket.NetConn and returns a context that |
| 841 | // is tied to the parent context and the lifetime of the conn. Any error |