mirror of
https://github.com/syumai/workers.git
synced 2025-03-10 17:29:11 +00:00
add type check of *TCPSocket
This commit is contained in:
parent
85a1d52210
commit
f48666ba0f
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user