Implement dummy RemoteAddr on client conn

This commit is contained in:
Zoltán Papp
2024-07-10 10:12:49 +02:00
parent 1f95467b02
commit e0d086a8a8
3 changed files with 15 additions and 2 deletions

View File

@@ -40,11 +40,11 @@ func (c *Conn) Write(b []byte) (n int, err error) {
}
func (c *Conn) RemoteAddr() net.Addr {
panic("RemoteAddr is not implemented")
return WebsocketAddr{}
}
func (c *Conn) LocalAddr() net.Addr {
panic("LocalAddr is not implemented")
return WebsocketAddr{}
}
func (c *Conn) SetReadDeadline(t time.Time) error {