mirror of
https://github.com/syumai/workers.git
synced 2025-03-10 17:29:11 +00:00
expose funcion
This commit is contained in:
parent
5777b1b698
commit
ad5c721056
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user