xSocket is a library wrapped around Socket.d.
Socket.d has a collection of many connection protocols: TCP, UDP and WS. It can be used for MSG, RPC, IM, MQ and other scenarios, and can replace Http, Websocket, gRpc and other protocols. Such as the connection between the mobile device and the server, such as some microservice scenarios, etc.
* Extends Java: https://drive.google.com/file/d/1AASIjlcINkuU5u607hXxR3c8Y4d7MD7u/view?usp=sharing
* Language supported: B4X, .NET, Javascript, PHP;
There are fully functional xSocket supported:
- Send (Qos0) : Yes
- SendAndRequest (Qos1) : Yes
- SendAndSubscribe (stream) : Yes
- Reply or respond : Yes
- Single connection two-way communication : Yes
- Data sharding : Yes
- Disconnection automatically reconnect : Yes
- Meta information : Yes
- Event(or path): Yes
- StreamId (or message correlation): Yes
- Broker pattern cluster: Yes
- Asynchronous: Async
- Interface experience: Classic
- Basic transport protocol: tcp, udp, ws
* Server Method: (Version 2.12)
- xSession:
- xMessage:
- xStringEntity
- xEntityDefault
- xFileEntity
- xInetSocketAddress
- xMessageDefault
- xRequestStream
- xSendStream
* Client Method: (Version 2.12)
- xClientSocket
- xClientSession
- xEntity
* Server Event:
- OnConnected(session as xSession)
- OnMessage(session as xSession, message as xMessage)
- OnClose(session as xSession)
- OnError(session as xSession, error as String)
- MQOnRequest(session as xSession)
- MQOnMessage(session as xSession, 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
Socket.d has a collection of many connection protocols: TCP, UDP and WS. It can be used for MSG, RPC, IM, MQ and other scenarios, and can replace Http, Websocket, gRpc and other protocols. Such as the connection between the mobile device and the server, such as some microservice scenarios, etc.
Main Features
- Event-based, each message can be event-routed
- The so-called semantics is described by the meta-information
- Stream dependency, where related messages are strung together in a stream
- Language independent, binary transport (tcp, ws, udp) Support multi-language, multi-platform
- Disconnection reconnection, automatic connection restoration
- Multiplexing, allowing multiple request and response messages to run simultaneously on a single connection
- Two-way communication, single link two-way listening and sending
- Automatic sharding,Data over 16Mb (configurable) will be automatically split and reassembled (except udp)
- Simple interface, reactive but with callback interface
* Extends Java: https://drive.google.com/file/d/1AASIjlcINkuU5u607hXxR3c8Y4d7MD7u/view?usp=sharing
* Language supported: B4X, .NET, Javascript, PHP;
There are fully functional xSocket supported:
- Send (Qos0) : Yes
- SendAndRequest (Qos1) : Yes
- SendAndSubscribe (stream) : Yes
- Reply or respond : Yes
- Single connection two-way communication : Yes
- Data sharding : Yes
- Disconnection automatically reconnect : Yes
- Meta information : Yes
- Event(or path): Yes
- StreamId (or message correlation): Yes
- Broker pattern cluster: Yes
- Asynchronous: Async
- Interface experience: Classic
- Basic transport protocol: tcp, udp, ws
* Server Method: (Version 2.12)
- xSession:
- xMessage:
- xStringEntity
- xEntityDefault
- xFileEntity
- xInetSocketAddress
- xMessageDefault
- xRequestStream
- xSendStream
* Client Method: (Version 2.12)
- xClientSocket
- xClientSession
- xEntity
* Server Event:
- OnConnected(session as xSession)
- OnMessage(session as xSession, message as xMessage)
- OnClose(session as xSession)
- OnError(session as xSession, error as String)
- MQOnRequest(session as xSession)
- MQOnMessage(session as xSession, 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
Attachments
-
Javascript Example_v.2.12.zip16.7 KB · Views: 65
-
SocketServer Example_v.2.12.zip2.9 KB · Views: 83
-
Javascript_xSocket.zip14.7 KB · Views: 74
-
b4j_xSocket_2.15.zip27.4 KB · Views: 66
-
java_libs_2.5.10.zip228.2 KB · Views: 74
-
b4a_xSocket_2.15.zip27.4 KB · Views: 74
-
b4j_xSocket_2.16.zip32.9 KB · Views: 66
-
b4j_xSocket_2.17.zip32.9 KB · Views: 69
Last edited: