org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverEndpointExporter' defined in class path resource [org/springblade/lab/external/webScoket/WebSocketConfig.class]: Invocation of init method failed; nested exception is java.lang.IllegalStateException: javax.websocke...
var sio=require("scoket.io"); var socket=sio.listen(server); socket就是在server基礎上創(chuàng)建的一個socket.io服務器. 當客戶端與服務器端建立連接時,觸發(fā)socket.io服務的connection事件. 復制代碼代碼如下: socket.on("connection",function(socket){ ...