Skip to content

Commit f6dfb9d

Browse files
committed
update
1 parent aaa97e0 commit f6dfb9d

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<modelVersion>4.0.0</modelVersion>
1212
<artifactId>websocket-server</artifactId>
13-
<version>1.1.2</version>
13+
<version>1.1.3</version>
1414
<name>WebsocketServer</name>
1515
<packaging>jar</packaging>
1616

src/main/java/info/unterrainer/websocketserver/WsOauthHandlerBase.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public WsOauthHandlerBase(String name) {
6161
}, 30, 30, TimeUnit.SECONDS);
6262
}
6363

64-
void setTokenHandler(OauthTokenManager tokenHandler) {
64+
public void setTokenHandler(OauthTokenManager tokenHandler) {
6565
this.tokenHandler = tokenHandler;
6666
}
6767

@@ -96,7 +96,7 @@ public boolean isConnected(Session session) {
9696
public void onConnect(WsConnectContext ctx) throws Exception {
9797
handleConnect(ctx);
9898
}
99-
99+
100100
protected void handleConnect(WsConnectContext ctx) throws Exception {
101101
log.debug("(" + name + ") New client tries to connect: [{}]", ctx.session.getRemoteAddress());
102102
String token = ctx.header("Authorization");
@@ -161,7 +161,7 @@ protected void handleMessage(WsMessageContext ctx) throws Exception {
161161
public void onBinaryMsg(WsBinaryMessageContext ctx) throws Exception {
162162
handleBinaryMessage(ctx);
163163
}
164-
164+
165165
protected void handleBinaryMessage(WsBinaryMessageContext ctx) throws Exception {
166166
log.debug("(" + name + ") Received binary message from [{}]: [{}] bytes", ctx.session.getRemoteAddress(),
167167
ctx.data().length);
@@ -179,7 +179,7 @@ protected void handleBinaryMessage(WsBinaryMessageContext ctx) throws Exception
179179
public void onClose(WsCloseContext ctx) throws Exception {
180180
handleClose(ctx);
181181
}
182-
182+
183183
protected void handleClose(WsCloseContext ctx) throws Exception {
184184
log.debug("(" + name + ") Disconnected client: [{}]", ctx.session.getRemoteAddress());
185185
removeClient(ctx.session);
@@ -189,7 +189,7 @@ protected void handleClose(WsCloseContext ctx) throws Exception {
189189
public void onError(WsErrorContext ctx) throws Exception {
190190
handleError(ctx);
191191
}
192-
192+
193193
protected void handleError(WsErrorContext ctx) throws Exception {
194194
Throwable t = ctx.error();
195195
if (t instanceof EOFException || t instanceof IOException) {

0 commit comments

Comments
 (0)