Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lppedd/komeglem
A multiplatform client for the popular Omegle chatroom
https://github.com/lppedd/komeglem
compose java kotlin multiplatform omegle
Last synced: 16 days ago
JSON representation
A multiplatform client for the popular Omegle chatroom
- Host: GitHub
- URL: https://github.com/lppedd/komeglem
- Owner: lppedd
- License: apache-2.0
- Created: 2021-10-31T19:05:27.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-02T14:17:15.000Z (about 1 year ago)
- Last Synced: 2024-10-10T18:43:58.448Z (about 1 month ago)
- Topics: compose, java, kotlin, multiplatform, omegle
- Language: Kotlin
- Homepage:
- Size: 152 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# komeglem
**komeglem** is an attempt to a multiplatform client for the popular Omegle chatroom.
The project is developed just for fun, and to try out Kotlin Multiplatform capabilities.-----
An example of how to start chatting with a random stranger:
```kotlin
val listener = object : OmegleRandomChatListener {
override suspend fun onWaiting(chat: OmegleRandomChat) {
println("Waiting")
}override suspend fun onConnected(chat: OmegleRandomChat) {
println("Connected: ${chat.getClientId()}")
}override suspend fun onDisconnected(chat: OmegleRandomChat) {
println("Disconnected")
}override suspend fun onMessage(chat: OmegleRandomChat, message: String) {
println("Message: $message")
}
}val omegle = omegle(/* Optional custom OmegleApiFactory */)
val session = omegle.newRandomChat(listener, language = "en")// At some point you may want to forcefully disconnect the chat session
session.disconnect()// Remember to dispose the Omegle instance when not needed anymore
omegle.dispose()
```