1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
| package cn.stylefeng.guns.modular.WebSocket;
|
| import javax.websocket.Session;
|
| public class WebSocketClient {
| // 与某个客户端的连接会话,需要通过它来给客户端发送数据
| private Session session;
|
| //连接的uri
| private String uri;
|
| public Session getSession() {
| return session;
| }
|
| public void setSession(Session session) {
| this.session = session;
| }
|
| public String getUri() {
| return uri;
| }
|
| public void setUri(String uri) {
| this.uri = uri;
| }
| }
|
|