Whether Fleck can be used with socket.io-client - websocket

I use .net as a server,my client is react,I want to use socket.io,but a error in Console.
error is "websocket error".
Can I use Fleck with socket.io-client?

Related

IdHTTP to ensure push data to Ubidots (FMX, WIN32)

I can push an encrypted piece of humidity data up to my Ubidots cloud database by simply loading the following url in a web browser:
https://industrial.ubidots.com/api/v1.6/devices/MYDEVICENAME/?token=MYTOKENHERE&_method=post&humidity=15.9
When I do that, I get the success response in the browser window
{"humidity": [{"status_code": 201}]}
and the data shows up in my data table on Ubidots.
Now, I want to do this from an FMX app (C++ on Win32) without a visible browser, and I would like to check that I get the nice "201" response code. I looked at this link and cobbled up the following line of code:
Memo1->Text = IdHTTP1->Get("https://industrial.ubidots.com/api/v1.6/devices/MYDEVICENAME/?token=MYTOKENHERE&_method=post&humidity=6.9");
When I run it, I get a "Could not load SSL library" error message. How do I tell TIdHTTP to use SSL so it can handle the HTTPS? Is there a better, cleaner way to do this?
I get a "Could not load SSL library" error message.
Indy uses OpenSSL by default. You can use Indy's WhichFailedToLoad() function in IdSSLOpenSSLHeaders.hpp to find out why it couldn't load the OpenSSL library.
How do I tell IdHTTP1 to use SSL
You already are, by virtue of requesting an HTTPS url. Indy is simply having trouble loading the SSL library, either because it can't find the library binaries, or you have the wrong versions of the binaries. You can get Indy compatible OpenSSL binaries from https://indy.fulgan.com/SSL/. Typically you should place them in the same folder as your app, but if you want to store them somewhere else then you need to call Indy's IdOpenSSLSetLibPath() function before invoking any SSL/TLS operations.

Error getting server certificate generating datasnap client classes

I have a datasnap server configured for HTTPS, this starts and runs fine as far as I can tell.
From the client's point of view when I 'Generate datasnap client classes' via the TSQLConnection component I get an error message - Error getting server certificate.
Can anybody offer any useful info regarding this and how to fix it?
Thanks,
Appears to be a bug with the TDSCertfiles component in the Server project.
Having set the following properties programmatically, the bug seems to ignore what I have put in code and looks for what is set manually in the object inspector (empty) :
Cerfile
Keyfile
RootCertfile
FIX - After setting the above properties and before calling DSHTTPService.Start add the following :
DSCertFiles.SetServerProperties(DSHTTPService.HttpServer).
Retesting the connection/Generating server methods from my client app, I no longer get the error message and it successfully connects.

How to configure/enable php-phantomjs on shared hosting server

I am using PHP-Phantomjs http://jonnnnyw.github.io/php-phantomjs/ to capture the content of my website, tools I am using Laravel v5.0 and PHP-Phantomjs v4.0 it is working perfect on my local MAC machine but the problem is.
I have uploaded files manually as I had to do always to the server and there is no difference in files, but when I try to generate image following error occurs.
FatalErrorException in ContainerBuilder.php line 419:
syntax error, unexpected 'finally' (T_STRING), expecting catch (T_CATCH)
I think the phantomJS exec file I have uploaded is not compatible, or is there something else I have to do to enable the phantomJS on GoDaddy server?
You're getting this error because, finally block of try-catch was added in PHP 5.5. So the reason it wont't work, you have older version of PHP on your production server.

Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL?

Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://x.x.x.x/magento/api/soap/?wsdl' : Start tag expected, '<' not found in
We used SOAP api version 1 in magento working in local perfectly (windows environment) and not in server (Linux).
PHP soap and xml-rpc in enabled in server.
By the looks of it you have an error in some xml somewhere, or your not getting the wsdl file returned. If you visit the wsdl URL manually do you actually get the wsdl xml definitions? Check this first. If so, run it through an xml validator to check it's valid. From the fact it's looking for an '<' tag, I suspect you are not getting the wsdl file returned, but an error instead so check your magento error logs. Also, from memory, I think you might need to setup a host entry on the server to your site as well, I have seen this before and that has resolved it. Magento's soap controller initiates a connection to the wsdl file when you make a request and it might not be able to resolve to itself.
I don't know which version of Magento are you using, but there is a SOAP patch for Magento 1.9.x

magento-shipworks: the remote server returned an error (405) method not allowed

I am trying to connect Magento with Shipworks, for that i have downloaded shipworks3.php file which is required for the integration,
and i have put the file in the c://wamp/www/magento/shipworks3.php, that time Shipworks giving me message that it requires SSL required, to resolve that i made my apache SSL enable using IIS7, so it will use the https:// url ,
error resolved that time but got new error, about
the remote server returned an error (405) method not allowed
I have searched a lot but found nothing, can anyone sort it out,
Thanks in advance.

Resources