Code Monkey home page Code Monkey logo

Comments (7)

ganeshchenniah avatar ganeshchenniah commented on May 24, 2024 3

Hi ,

Is there any update on this issue ? i m also looking for the solution

from dartssh2.

payamss avatar payamss commented on May 24, 2024

same here Error: UnimplementedError: Native socket is not supported on web

from dartssh2.

mewforest avatar mewforest commented on May 24, 2024

Same here, problem it still exists on web 👎🏻

Does anyone know, is the problem exists on earlier versions?

  final socket = await SSHSocket.connect('localhost', 22);

  final client = SSHClient(
    socket,
    username: 'root',
    onPasswordRequest: () => '1234567',
  );

Error:

Uncaught (in promise) Error: UnimplementedError: Native socket is not supported on web
    at Object.throw_ [as throw] (errors.dart:263:21)
    at connectNativeSocket (ssh_socket_js.dart:8:3)
    at connectNativeSocket.next (<anonymous>)
    at runBody (async_patch.dart:84:54)
    at Object._async [as async] (async_patch.dart:123:5)
    at Object.connectNativeSocket (ssh_socket_js.dart:3:38)
    at connect (ssh_socket.dart:13:18)
    at connect.next (<anonymous>)
    at runBody (async_patch.dart:84:54)
    at Object._async [as async] (async_patch.dart:123:5)
    at SSHSocket.connect (ssh_socket.dart:8:35)
    at connect (main.dart:12:34)
    at connect.next (<anonymous>)
    at runBody (async_patch.dart:84:54)
    at Object._async [as async] (async_patch.dart:123:5)
    at Object.connect (main.dart:11:13)
    at main$ (main.dart:8:3)
    at main.dart.bootstrap.js:303:10
    at Array.forEach (<anonymous>)
    at window.$dartRunMain (main.dart.bootstrap.js:302:32)
    at <anonymous>:1:8
    at Object.runMain (client.js:8803:21)
    at client.js:24896:19
    at _wrapJsFunctionForAsync_closure.$protected (client.js:3448:15)
    at _wrapJsFunctionForAsync_closure.call$2 (client.js:11507:12)
    at Object._asyncStartSync (client.js:3412:20)
    at main__closure4.$call$body$main__closure (client.js:24912:16)
    at main__closure4.call$1 (client.js:24824:19)
    at StaticClosure._rootRunUnary (client.js:3816:16)
    at _CustomZone.runUnary$2$2 (client.js:12906:39)
    at _CustomZone.runUnaryGuarded$1$2 (client.js:12853:14)
    at _ControllerSubscription._sendData$1 (client.js:12446:19)
    at _DelayedData.perform$1 (client.js:12629:59)
    at _PendingEvents_schedule_closure.call$0 (client.js:12688:14)
    at Object._microtaskLoop (client.js:3656:24)
    at StaticClosure._startMicrotaskLoop (client.js:3662:11)
    at _AsyncRun__initializeScheduleImmediate_internalCallback.call$1 (client.js:11384:9)
    at invokeClosure (client.js:1227:26)
    at MutationObserver.<anonymous> (client.js:1246:18)

from dartssh2.

khaipg avatar khaipg commented on May 24, 2024

Same
Error: UnimplementedError: Native socket is not supported on web

from dartssh2.

rickmeulendijks avatar rickmeulendijks commented on May 24, 2024

Same here.
Like to use this for web.

from dartssh2.

xtyxtyx avatar xtyxtyx commented on May 24, 2024

Hello,

Sorry for the delay in my response. It's actually intended that SSHSocket don't provide a default implementation on web platform as there is no standard method for connecting to sockets in browsers. Instead you can implement the SSHSocket interface use whatever available in the browser such as bare WebSocket, socket.io, WebRTC data channels or WebExtension native messaging.

Please let me know if you have any further questions or concerns.

from dartssh2.

RiRa12621 avatar RiRa12621 commented on May 24, 2024

Fine to close, if it's intended behaviour

from dartssh2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.