Did you ever find an alternative?
johnstonmatt opened this issue · 4 comments
johnstonmatt commented
I'm interested in a project like this and I'm curious if you found any elegant solutions for this type of thing in the ecosystem?
justjavac commented
I created a libssh2 raw binding https://github.com/denoffi/deno_libssh2, but I ran into a problem: the libssh2_session_handshake
function expects a socket as a parameter.
int libssh2_session_handshake(LIBSSH2_SESSION *session, libssh2_socket_t socket);
// ^^^^^^^^^^^^^^^^^^^^^^^
// HEAR
justjavac commented
maybe web can use libsocket https://github.com/dermesser/libsocket
johnstonmatt commented
I was thinking i might try the FFI approach with the Rust SSH2 crate next week, does that have potential to solve the issue?
This is the first time I've ever needed to write native code, but with Deno itself being rust i thought it was a natural fit
johnstonmatt commented
the library is now supported natively in Deno