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