|
@@ -10,7 +10,7 @@ import java.io.IOException;
|
|
|
import java.util.concurrent.ConcurrentHashMap;
|
|
|
import java.util.concurrent.atomic.AtomicInteger;
|
|
|
|
|
|
-@ServerEndpoint("/webSocket/{sid}")
|
|
|
+//@ServerEndpoint("/webSocket/{sid}")
|
|
|
@Component
|
|
|
public class WebSocketServer {
|
|
|
//静态变量,用来记录当前在线连接数。应该把它设计成线程安全的。
|