Created
February 11, 2026 19:59
-
-
Save LethalMaus/f4ccb13e55be0932526e08d4b014a531 to your computer and use it in GitHub Desktop.
ZeroMq.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fun sendMessage(message: String) { | |
| if (!isRunning || pubSocket == null) { | |
| Log.e(TAG, "Cannot send message, client not connected") | |
| return | |
| } | |
| try { | |
| pubSocket?.send(message) | |
| Log.d(TAG, "Sent message to server: $message") | |
| } catch (e: ZMQException) { | |
| Log.e(TAG, "Error sending message or receiving response: ${e.message}", e) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment