expose funcion

This commit is contained in:
a 2023-06-26 03:27:30 -05:00
parent 5777b1b698
commit ad5c721056
No known key found for this signature in database
GPG Key ID: 374BC539FE795AF0

View File

@ -121,6 +121,12 @@ func (t *TCPSocket) Write(b []byte) (n int, err error) {
}
}
// StartTls will call startTls on the socket
func (t *TCPSocket) Close() error {
t.socket.Call("startTls")
return nil
}
// Close closes the connection.
// Any blocked Read or Write operations will be unblocked and return errors.
func (t *TCPSocket) Close() error {