The SSH and mosh apps use a binding between the POSIX socket interface on the Native Client side and these APIs on the JS side.