File tree Expand file tree Collapse file tree 2 files changed +35
-6
lines changed Expand file tree Collapse file tree 2 files changed +35
-6
lines changed Original file line number Diff line number Diff line change 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+
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ plugins {
88}
99
1010group ' com.github.dsrees'
11- version ' 0.1.0 '
11+ version ' 0.1.1 '
1212
1313sourceCompatibility = 1.8
1414
You can’t perform that action at this time.
0 commit comments