Subprotocol returns the negotiated subprotocol. An empty string means the default protocol.
()
| 145 | // Subprotocol returns the negotiated subprotocol. |
| 146 | // An empty string means the default protocol. |
| 147 | func (c *Conn) Subprotocol() string { |
| 148 | return c.subprotocol |
| 149 | } |
| 150 | |
| 151 | func (c *Conn) close() error { |
| 152 | c.closeMu.Lock() |