B4A Library WebSocket Client Library - Erel    
Apr 22, 2020   
(21 reactions)   
tags: web, WebSocket, apiThis library allows you to create WebSocket connections with servers that support WebSockets... a class named WebSocketHandler. With this class you can send events to the server and the server can send... As WebSocket
Private timer1 As Timer
End Sub
Public Sub Initialize
End Sub
Private Sub WebSocket_Connected (WebSocket1 As WebSocket)
ws = WebSocket1
timer1.Initialize("timer1", 1000...: " & Params.Get("message"))
End Sub
Private Sub WebSocket_Disconnected...
B4J Library jWebSocketClient library - Erel    
Dec 4, 2022   
(15 reactions)Note: this library depends on jetty_b4j.jar, which is included in jServer3.zip: https://www.b4x.com/android/forum/threads/jserver3.141323/#content
With this library you can implement WebSocket clients. The API is identical to the B4A library: http://www.b4x.com/android/forum/threads/websocket-client-library.40221/#content (except of the object name which is WebSocketClient).
It is based on Jetty WebSocket client implementation.
The push client example was ported to B4J: http://www.b4x.com...
Wish jWebSocketClientV2 - OliverA    
Oct 22, 2023   
(5 reactions)I wish for a jWebSocketClient library (that can have a different name, so as to keep the jWebSocketClient library that's based on Jetty3) that is based on the latest Jetty revision that is included in the latest B4J. This may resolve the Web Socket connect issues found on this forum when it comes to using the Jetty 3 based jWebSocketClient library against the Jetty 4 Server included in the latest B4J....
B4J Code Snippet jWebSocketClient v2 accept all certificates - Erel    
Aug 16, 2026   
(10 reactions) As WebSocketClient
End Sub
Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
MainForm... (WebSocket As WebSocketClient)
Dim ssl As JavaObject
ssl.InitializeNewInstance("org...", Array(HttpTransport))
Dim jo As JavaObject = WebSocket
Dim wsc As JavaObject
wsc.InitializeNewInstance("org.eclipse.jetty.websocket.client.WebSocketClient", Array(HttpClient...
link: Updated for compatibility with jServer5. Thanks @Chris2
https://www.b4x.com/android/forum/threads/jserver-5-based-on-jetty-12-1.171536/post-1050562...
B4A Tutorial Custom WebSocket Based Push Framework - Erel    
Jul 28, 2014   
(18 reactions)   
tags: Push Framework, ErelThe online example is currently disabled due to spam :(
Now that both B4A and B4J support WebSockets it is possible to implement a full push framework solution.
The solution is made of two components. The client app (B4A) and the server WebApp (B4J).
The client opens and maintains a WebSocket.... You need to first download WebSocket library (v1.01+): http://www.b4x.com/android/forum/threads... is available here: http://www.b4x.com/android/forum/threads/webapp-web-apps-overview.39811
B4J client...
B4J Question jWebSocketClient - cant connect - Alexander Stolte    
Oct 11, 2023.websocket.api.UpgradeException: 0 null
at org.eclipse.jetty.websocket.client.WebSocketUpgradeRequest.onComplete(WebSocketUpgradeRequest.java:515)
at org.eclipse.jetty.client.ResponseNotifier....eclipse.jetty.websocket.client.WebSocketUpgradeRequest.onComplete(WebSocketUpgradeRequest.java:522....CompletableFuture.get(CompletableFuture.java:1999)
at anywhersoftware.b4j.objects.WebSocketClientWrapper.Close(WebSocketClientWrapper.java:102)
at anywhersoftware.b4j.objects...
B4J Library jServer & jWebSocketClient using Jetty 11.0.26 - Chris2    
May 27, 2026   
(5 reactions) for forum attachment), and attached is a version of the jWebSocketClient library that uses that jServer-11.0.26.
jServer-11.0.26 is based on jServer 4.03
jWebSocketClient-11.0.26 is based on jWebSocketClient V2
To install:
jServer-11.0.26
Download the zip file from here, and extract the contents...
jWebSocketClient-11.0.26:
Copy the contents of the attached zip (jWebScocketClient-11.0.26.zip containing jWebSocketClient-11.0.26.jar & jWebSocketClient-11.0.26.xml) to the internal libraries...
B4J Tutorial [server] Automatic Reconnecting WebSocket - Erel    
Jan 6, 2016   
(12 reactions)   
tags: B4J Server WebsocketWhen working with WebSocket handlers the client maintains an online connection. The connection... can be temporary broken. Especially when the client is a mobile browser.
Using the Reconnecting-WebSocket... connection. In both cases a new WebSocket handler instance is created.
You can use the HttpSession to restore the previous state.
For example:
Private Sub WebSocket_Connected (WebSocket1 As WebSocket)
Log("Connected")
ws = WebSocket1
Dim session As HttpSession = ws.UpgradeRequest...
Share My Creation [Web][PHP-CRUD-API] Useful Plugins - WebSockets Chat Application Demo - Mashiane    
Feb 11, 2026Hi Fam
Download Source Code
This is our 3rd demo of useful PHP-CRUD-API plugins. This one is a WebSockets Server that has been created from scratch. Thanks to AI. Its stores data in MySQL and we use REST API via PHP-CRUD-API to knit it together.
169819
The UI is developed with DaisyUI &.../threads/web-php-crud-api-plug-ins-queries-forms-authentication-email-sse-and-more.169739/...
link: The URL to download source code of the WebSocket Chat Application is on the first post.
What we...
B4R Library WebSocketClient - Erel    
Apr 25, 2016   
(14 reactions)   
tags: B4R Websocket ClientrWebSocketClient library is a WebSocket client implementation. It is based on this open source... B4X WebSocketHandler class: https://www.b4x.com/android/forum/threads/websocket-client-library.40221/#content
This means that it is intended to be used with B4J WebSocket servers.
Using it is simple:
1. Create a client...("arduino_led".Length), State))
ws.Flush
This will cause the WebSocket_NewMessage event to be raised on the Arduino:
Sub WebSocket_NewMessage (FunctionName As String, Params() As String...
Page: 1  
2  
3  
4  
5  
6  
7