Skip to content

Commit 4671354

Browse files
committed
Version 0.1.1
1 parent 6ab73b5 commit 4671354

File tree

2 files changed

+35
-6
lines changed

2 files changed

+35
-6
lines changed

README.md

+34-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# JavaPhoenixClient
22

33

4-
## Java Client for Phoenix Channels
4+
JavaPhoenixClient is a Kotlin implementation of the [phoenix.js](https://hexdocs.pm/phoenix/js/) client used to manage Phoenix channels.
55

6-
JavaPhoenixClient is a Kotlin implementation of the `[phoenix.js] client used to manage Phoenix channels.
76

7+
### Basic Usage
88

99
```kotlin
1010

@@ -16,9 +16,9 @@ fun connectToChatRoom() {
1616

1717
// Listen to events on the Socket
1818
socket.logger = { Log.d("TAG", it) }
19-
socket.onOpen { Timber.d("Socket Opened") }
20-
socket.onClose { Timber.d("Socket Closed") }
21-
socket.onError { Timber.d(it, "Socket Error") }
19+
socket.onOpen { Log.d("TAG", "Socket Opened") }
20+
socket.onClose { Log.d("TAG", "Socket Closed") }
21+
socket.onError { Log.d(it, "TAG", "Socket Error") }
2222

2323
socket.connect()
2424

@@ -34,3 +34,32 @@ fun connectToChatRoom() {
3434
.receive("error") { /* failed to join the chatroom */ }
3535
}
3636
```
37+
38+
39+
### Installation
40+
41+
JavaPhoenixClient is hosted on JCenter. You'll need to make sure you declare `jcenter()` as one of your repositories
42+
43+
```
44+
repositories {
45+
jcenter()
46+
}
47+
```
48+
49+
and then add the library. See [releases](https://github.com/dsrees/JavaPhoenixClient/releases) for the latest version
50+
```$xslt
51+
dependencies {
52+
implementation 'com.github.dsrees:JavaPhoenixClient:0.1.1'
53+
}
54+
```
55+
56+
57+
### Feedback
58+
Please submit in issue if you have any problems!
59+
60+
61+
62+
This library is built to mirror the [phoenix.js](https://hexdocs.pm/phoenix/js/) and [SwiftPhoenixClient](https://github.com/davidstump/SwiftPhoenixClient) libraries.
63+
64+
65+

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ plugins {
88
}
99

1010
group 'com.github.dsrees'
11-
version '0.1.0'
11+
version '0.1.1'
1212

1313
sourceCompatibility = 1.8
1414

0 commit comments

Comments
 (0)