|
2 | 2 | A very lightweight WebSocket client library for Java/Android which aims to implement the WebSocket protocol as defined in RFC 6455. |
3 | 3 |
|
4 | 4 | ## Download |
5 | | -This library is published into JCenter and Maven Central. |
| 5 | +This library is published to Maven Central. Versions prior to 2.0.0 were also published to JCenter. |
| 6 | + |
| 7 | +## _dev.gustavoavila_ is now the official namespace |
| 8 | +Former versions were using the namespace _tech.gusavila92_ but now the official namespace starting from version 2.0.0 is _dev.gustavoavila_ |
6 | 9 |
|
7 | 10 | ### Gradle |
8 | 11 | ``` |
9 | | -compile 'tech.gusavila92:java-android-websocket-client:1.2.2' |
| 12 | +compile 'dev.gustavoavila:java-android-websocket-client:2.0.0' |
10 | 13 | ``` |
11 | 14 | ### Maven |
12 | 15 | ``` |
13 | 16 | <dependency> |
14 | | - <groupId>tech.gusavila92</groupId> |
| 17 | + <groupId>dev.gustavoavila</groupId> |
15 | 18 | <artifactId>java-android-websocket-client</artifactId> |
16 | | - <version>1.2.2</version> |
| 19 | + <version>2.0.0</version> |
17 | 20 | <type>pom</type> |
18 | 21 | </dependency> |
19 | 22 | ``` |
@@ -108,33 +111,12 @@ This library supports secure and insecure WebSockets. You just need to define th |
108 | 111 | ## Ping and Pong frames |
109 | 112 | When a Ping frame is received, automatically a Pong frame is sent with the same Application Data of the Ping frame. You can also send Ping and Pong frames unsolicited using ```sendPing(byte[] data)``` and ```sendPong(byte[] data)```. Data can be *null* if don't want to send Application Data. |
110 | 113 |
|
111 | | -## Build |
112 | | -You need Gradle to build the project. Any version will do. |
113 | | -``` |
114 | | -gradle build |
115 | | -``` |
116 | | - |
117 | | -Then you cand find a ```.jar``` file inside the ```build/libs``` folder |
118 | | -### Eclipse |
119 | | -If you want to open the project in Eclipse, just type |
120 | | -``` |
121 | | -gradle eclipse |
122 | | -``` |
123 | | - |
124 | | -and Gradle will automatically generate the source files required to open the project in Eclipse. |
125 | | -### IntelliJ IDEA |
126 | | -If you want to open the project in IntelliJ IDEA, just type |
127 | | -``` |
128 | | -gradle idea |
129 | | -``` |
130 | | - |
131 | | -and Gradle will automatically generate the source files required to open the project in IntelliJ IDEA. |
132 | 114 | ## Minimum requirements |
133 | 115 | This libary requires at minimum Java 1.6 or Android 1.6 (API 4) |
134 | 116 |
|
135 | 117 | ## License |
136 | 118 |
|
137 | | -Copyright 2017 Gustavo Avila |
| 119 | +Copyright 2022 Gustavo Avila |
138 | 120 |
|
139 | 121 | Licensed under the Apache License, Version 2.0 (the "License"); |
140 | 122 | you may not use this file except in compliance with the License. |
|
0 commit comments