Jump to content
QuantumZA

How can I silence a websocket connection refused error?

Recommended Posts

When using the `TSslWebSocketCli.WSConnect` method an expected Connection Refused error is thrown (See Attached). I want to hide this. How can I do so?

 

I have tried wrapping a `try..except` block around it without any luck. I have also assigned the Error and Exception events to empty procedures.

gZuxGtTWSb.png

Share this post


Link to post

Set the component ResponseNoException property to true, and the exceptions are replaced by messages.

 

This is a historical thing to not break old applications, but should probably default to true now. 

 

Angus

 

  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×