Commit inicial

This commit is contained in:
2024-03-18 19:25:08 -06:00
commit 5a89c50ef2
161 changed files with 26070 additions and 0 deletions

56
B4A/WebSocket.xml Normal file
View File

@@ -0,0 +1,56 @@
<?xml version="1.0" encoding="UTF-8"?>
<root>
<doclet-version-NOT-library-version>1.04</doclet-version-NOT-library-version>
<class>
<name>anywheresoftware.b4a.objects.WebSocketWrapper</name>
<shortname>WebSocket</shortname>
<comment>Implementation of a WebSocket client.</comment>
<owner>process</owner>
<event>Connected</event>
<event>Closed (Reason As String)</event>
<event>TextMessage (Message As String)</event>
<permission>android.permission.INTERNET</permission>
<method>
<name>Connect</name>
<comment>Tries to connect to the given Url. The Url should start with ws:// or wss://</comment>
<returntype>void</returntype>
<parameter>
<name>Url</name>
<type>java.lang.String</type>
</parameter>
</method>
<method>
<name>Initialize</name>
<comment>Initializes the object and sets the subs that will handle the events.</comment>
<returntype>void</returntype>
<parameter>
<name>ba</name>
<type>anywheresoftware.b4a.BA</type>
</parameter>
<parameter>
<name>EventName</name>
<type>java.lang.String</type>
</parameter>
</method>
<method>
<name>SendText</name>
<comment>Sends a text message.</comment>
<returntype>void</returntype>
<parameter>
<name>Text</name>
<type>java.lang.String</type>
</parameter>
</method>
<method>
<name>Close</name>
<comment>Closes the connection.</comment>
<returntype>void</returntype>
</method>
<property>
<name>Connected</name>
<returntype>boolean</returntype>
<comment>Checks whether the connection is open.</comment>
</property>
</class>
<version>1.01</version>
</root>