B4J Library xSocket - The socket library is fully functional for event and semantic message streams - tummosoft    Jul 31, 2024   (19 reactions) messagex as xMessage)
- MQOnClose(session as xSession)
- MQOnError(session as xSession, error as String)
If you want to compile the application into a .jar file, you need to use SocketD 2.5.10 B4A Library Socket.IO Client Library - Biswajit    Jun 27, 2020   (26 reactions) // *** FOR HTTP CONNECTION *** //
var server = require('http').Server(app);
// *** FOR HTTP CONNECTION *** //
var io = require('socket.io')(server);
var users = {};
server.listen(999, function(){
console.log('listening on *:999');
});
io.sockets.on('connection', function(socket){
console.l B4i Library Socket.IO Client Library - Biswajit    May 14, 2022   (10 reactions) For the server code you can check Socket.IO Github example or you can use this following chat server example (written in javascript) :
const express = require("express");
const app = express();
const { createServer } = require("http");
const { Server } = require("socket.io");
var users = {};
// ** B4A Question Socket is not connected error [fixed, not solved] - agraham (first post)    Dec 12, 2021 Try a Sleep(100) or longer before AStreams.Initialize, I have a hazy recollection of seeing something like this a while ago - though it could be a false memory. B4J Code Snippet [B4X] Trust all SSL Socket - Erel    Apr 21, 2021   (7 reactions) Platforms: B4J (1st post) and B4A (2nd post) This code creates an SSL socket that doesn't verify the server certificate. Depends on jNet / Net and JavaObject libraries. Private Sub CreateTrustAllSSLSocket (EventName As String) As Socket Dim socket As Socket socket.Initialize(EventName) B4A Question socket.connected or not? - rtek1000    Jul 07, 2017 Hi,
Even if you turn off the server, this function does not realize that it can not send more data.
How can the client detect the offline server?
https://www.b4x.com/android/help/network.html#socket_connected
#Region Module Attributes
#FullScreen: False
#IncludeTitle: True
#Applicatio B4A Library SD EscPos Printer (Lan,USB, Bluetooth SPP, BLE) - RonkyOne (first post)    Apr 17, 2023 error: java.lang.RuntimeException: java.net.SocketException: Socket is not connected at anywheresoftware.b4a.BA.raiseEvent2(BA.java:258) at anywheresoftware.b4a.BA$2.run(BA.java:395) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler Java Question returning value from raiseEvent, raiseEvent2, or raiseEventFromDifferentThread - rdkartono (first post)    Feb 15, 2024 Socket.io is different than Socket. Socket.io is websocket-like communication. for now, I have no other choice than compiling in Release Mode , and use #BridgeLogger: true to get logs . If I have time, I will try to look for RaiseEvent source code in github to check B4A Question Why does the widget update stop working after a few seconds? - amir hosein (first post)    Nov 28, 2023 I want to have a socket service that call every 5 or 10 or 20 seconds to make a TCP connection with a Device and send a command to it and collect returned data from that device . After getting data from device , the TCP connection can be close . B4A Question EOFException - Tim Chapman    Jan 03, 2024 net.SocketException: Socket closed at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:188) at b4a.example.starter.onCreate(starter.java:48) at android.app.ActivityThread.handleCreateService(ActivityThread.java:4491) . 9 more Caused by: java.net.SocketException: Socket closed Page: 1   2   3   4   5   6   7   Powered by ColBERT |