Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jurajkubelka/mqttchat
A MQTT messaging library for Pharo
https://github.com/jurajkubelka/mqttchat
chat chat-application mqtt mqtt-client pharo pharo-smalltalk smalltalk
Last synced: 6 days ago
JSON representation
A MQTT messaging library for Pharo
- Host: GitHub
- URL: https://github.com/jurajkubelka/mqttchat
- Owner: JurajKubelka
- License: mit
- Created: 2017-02-19T18:00:23.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-26T18:32:00.000Z (over 7 years ago)
- Last Synced: 2024-10-31T13:45:58.252Z (about 2 months ago)
- Topics: chat, chat-application, mqtt, mqtt-client, pharo, pharo-smalltalk, smalltalk
- Language: Smalltalk
- Size: 156 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MQTTChat
[![Build Status](https://travis-ci.org/JurajKubelka/MQTTChat.svg?branch=master)](https://travis-ci.org/JurajKubelka/MQTTChat) [![Test Status](https://api.bob-bench.org/v1/badgeByUrl?branch=master&hosting=github&ci=travis-ci&repo=JurajKubelka%2FMQTTChat)](https://bob-bench.org/r/gh/JurajKubelka/MQTTChat)
[![Build status](https://ci.appveyor.com/api/projects/status/dw9mqd0sagdr3gd3/branch/master?svg=true)](https://ci.appveyor.com/project/JurajKubelka/mqttchat/branch/master)
A MQTT messaging library for [Pharo](http://pharo.org). It is build on top of [MQTT library](http://github.com/svenvc/mqtt) where you can find more information about [MQTT](http://mqtt.org) in Pharo.
## Installation
Evaluate the following code in Playground:
```
Metacello new
baseline: #MQTTChat;
repository: 'github://JurajKubelka/MQTTChat/repository';
load.
```### Example
#### Using IoT Eclipse server
To play with it, you can connect to the [IoT Eclipse server](http://iot.eclipse.org). To use a prepared example, execute the following code:
```
MQTTChat exampleAliceAndPedroIoTEclipse.
“And at any moment Bob can connect to the existing chat.”
MQTTChat exampleBobIOTEclipse.
```#### Using local MQTT server
Similarly, there are examples for a local MQTT server, e.g., [mosquitto](http://mosquitto.org):
```
MQTTChat exampleAliceAndPedroLocal.
“And at any moment Bob can connect to the existing chat.”
MQTTChat exampleBobLocal.
```### Screenshots
The UI is very simple. If you close a window, the chat client is automatically disconnected from the server. The client is automatically reconnected on a network failure. You can open `Transcript` in order to see log of network activities.
![Chats of Alice and Pedro](assets/img/chat.png)