Contact us


All times are UTC - 8 hours



   [ 4 posts ] 
Author Message
   


Joined: Mon May 22, 2017 11:46 am
Posts: 2
When attempting to create a DWTObject when Dynamic Web TWAIN is not installed on the user's machine, we get a steady stream of JavaScript errors that look something like
Code:
WebSocket connection to 'ws://127.0.0.1:5491/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED


In the context of our application, installation of the scanner component is optional, since we have separate support for file uploads as well. Is there a way to prevent all of these attempted connections, or alternatively, a way to check for installation of Dynamic Web TWAIN on the client machine before we attempt to create the DWTObject? We want to be able to support an "upload only" mode without a constant stream of errors coming in on the JavaScript console.


User avatar
   


Joined: Tue Mar 08, 2005 12:23 am
Posts: 1706
Hi Bsullivan,

Please try initializing Dynamic Web TWAIN manually using Load().

Regards,

_________________
Vincy
Dynamsoft Support Team
Follow us@Twitter, Facebook


   


Joined: Mon May 22, 2017 11:46 am
Posts: 2
Vincy,

Thanks for your reply, but I'm not sure I understand. Calling Load() doesn't prevent the repeated WebSocket requests from happening, nor does it tell me whether the component is installed on the client machine. Could you describe in a bit more detail the solution you're proposing?


User avatar
   


Joined: Tue Mar 08, 2005 12:23 am
Posts: 1706
Hi Bsullivan,

Load() method allows you to load Dynamic Web TWAIN manually. Once you need the upload only mode, you can unload() our component and there will be no prompt to install nor the WebSocket error. When scanning part is needed, you can then call Load() to get it.

Regards,

_________________
Vincy
Dynamsoft Support Team
Follow us@Twitter, Facebook


Display posts from previous:  Sort by  
   [ 4 posts ] 


Who is online

Users browsing this forum: Dexorn, WillieCam and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
Copyright © 2018 Dynamsoft | All Rights Reserved
dynamic designed by Dynamsoft team