https://github.com/iolanguage/loudmouth
https://github.com/iolanguage/loudmouth
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/iolanguage/loudmouth
- Owner: IoLanguage
- License: mit
- Created: 2018-03-11T11:56:02.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-15T10:09:57.000Z (about 8 years ago)
- Last Synced: 2025-01-21T00:48:48.244Z (over 1 year ago)
- Language: C
- Size: 8.79 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Loudmouth
Loudmouth is an async XMPP library written in C.
Example usage:
```Io
acc := Loudmouth with("user@server.com", "super password") do(
handleConnect = method(
"Connected!" println)
handleMessage = method(msg
"#{msg from} > #{msg plainBody}" println
body := msg plainBody
if(body indexOf("#") == 0,
body = doString(body) asString)
# This way you can manipulate
# XML nodes with SGML addon
XmppChatMessage create\
setPlainBody(body)\
setTo(msg from)\
sendVia(self)
# or simply send the message (must be a Sequence)
# (this is obviously faster)
#self send(msg from, body))
)
acc connect
# Any Io code after this line won't be executed
# (unless called as Loudmouth callback or run in separate thread)
Loudmouth startMainLoop
```
# Installation
`loudmouth` should be installed and foundable in your system. Then:
```
eerie install https://github.com/IoLanguage/Loudmouth.git
```