add type check of *TCPSocket

This commit is contained in:
syumai 2024-01-03 18:36:46 +09:00
parent 85a1d52210
commit f48666ba0f

View File

@ -83,6 +83,8 @@ func (t *TCPSocket) Socket() js.Value {
return t.socket
}
var _ net.Conn = (*TCPSocket)(nil)
// Read reads data from the connection.
// Read can be made to time out and return an error after a fixed
// time limit; see SetDeadline and SetReadDeadline.