Versions in this module Expand all Collapse all v0 v0.0.1 Dec 8, 2022 Changes in this version + func CloseConnection(id int, onCloseCallback func()) error — js/wasm + func InitLib() — js/wasm + func Log(format string, args ...interface{}) — js/wasm + func NewConnection(ws2sHost string, host string, port int, onConnect func(), ...) (int, error) — js/wasm + func ReadConnection(id int, onReadCallback func(data []byte, err string)) ([]byte, error) — js/wasm + func WriteConnection(id int, data []byte, onWriteCallback func(n int, err string)) (int, error) — js/wasm + type OptionalParams struct — js/wasm + Host string + Port int + SSHHost string + SSHPassword string + SSHPort int + SSHPrivateKey string + SSHPrivateKeyPassword string + SSHUsername string