B4X FEED Secure websocket connection won't connect at first attempt

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: Secure websocket connection won't connect at first attempt است. این موضوع تا کنون 28 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع Secure websocket connection won't connect at first attempt
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
28
پسندها
0
آخرین ارسال توسط PracticalSoft
Jun 6, 2020
11,559
4,422
Hello everyone.
I'm having a problem getting a secure websocket connection (B4J client to B4J server) to connect consistently....

Based on the various examples in the forum, I've merged the with the created by @OliverA, and created a client B4J app to connect to it using Basic Authentication.
That works fine.

I'm now been trying to change it to use secure connections (https and wss) using a self-signed certificate based on the info in:
[H3] [/H3]
Starting from B4J v2.00 the server can listen to two ports, the standard insecure port (http) and a secure port (https). The default port for http is 80 and for https is 443. These ports are used when the url doesn't explicitly specify a port number. It is recommended to go over the Wikipedia...
برای دیدن تصاویر باید ثبت نام کنید

[H3] [/H3]
Dear All, As requested by Erel in: .. here´s a new thread on this topic. Issue: the WebSocketClient library in b4j does not have an option to bypass certificate security check as it´s the case...
برای دیدن تصاویر باید ثبت نام کنید

[H3] [/H3]
Note that OkHttpUtils2, jOkHttpUtils2 and iHttpUtils2 are actually the exact same b4x library. jOkHttpUtils2_NONUI was required as a special version for non-ui B4J apps. It is no longer required and shouldn't be used. Starting from v2.90 it is very simple to initialize the internal http client...
برای دیدن تصاویر باید ثبت نام کنید


When not using SSL the connection from the client app to the RDC app via https & wss is established OK every time.
But when using SSL, the websocket connection errors...



 

عقب
بالا