From 305407760bda222d2d3caf2b3afe1e0a3d8c4ff7 Mon Sep 17 00:00:00 2001 From: jincieryi Date: Thu, 9 May 2019 17:10:33 +0800 Subject: [PATCH] Update WebSocketExample.java Add client authentication code --- .../java/com/github/devicehive/examples/WebSocketExample.java | 1 + 1 file changed, 1 insertion(+) diff --git a/websocket/src/main/java/com/github/devicehive/examples/WebSocketExample.java b/websocket/src/main/java/com/github/devicehive/examples/WebSocketExample.java index 165c277f..b0de3702 100644 --- a/websocket/src/main/java/com/github/devicehive/examples/WebSocketExample.java +++ b/websocket/src/main/java/com/github/devicehive/examples/WebSocketExample.java @@ -42,6 +42,7 @@ public static void main(String[] args) { .Builder() .url(URL) .build(); + client.authenticate(TOKEN); DeviceWS deviceWS = client.createDeviceWS(); deviceWS.setListener(new DeviceListener() {