Update gorilla/websockets library from 1.5.0 to latest 1.5.3

This commit is contained in:
Sean Sullivan
2025-02-19 00:26:21 +00:00
parent 0e3a247859
commit 3100bbab2f
33 changed files with 79 additions and 50 deletions

View File

@@ -1189,8 +1189,16 @@ func (c *Conn) SetPongHandler(h func(appData string) error) {
c.handlePong = h
}
// NetConn returns the underlying connection that is wrapped by c.
// Note that writing to or reading from this connection directly will corrupt the
// WebSocket connection.
func (c *Conn) NetConn() net.Conn {
return c.conn
}
// UnderlyingConn returns the internal net.Conn. This can be used to further
// modifications to connection specific flags.
// Deprecated: Use the NetConn method.
func (c *Conn) UnderlyingConn() net.Conn {
return c.conn
}