|
@@ -1,6 +1,8 @@
|
|
|
package cn.com.qmth.examcloud.ws.core;
|
|
|
|
|
|
import java.io.IOException;
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
import javax.websocket.OnClose;
|
|
|
import javax.websocket.OnError;
|
|
@@ -26,6 +28,12 @@ public class WebSocketServerEndpoint {
|
|
|
} catch (IOException e) {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
+
|
|
|
+ Map<String, List<String>> params = session.getRequestParameterMap();
|
|
|
+ String key = params.get("key").get(0);
|
|
|
+ String token = params.get("token").get(0);
|
|
|
+ System.out.println("key=" + key);
|
|
|
+ System.out.println("token=" + token);
|
|
|
}
|
|
|
|
|
|
@OnClose
|