|
|
@ -3,10 +3,10 @@ package com.fr.design.login.socketio; |
|
|
|
import com.fr.cbb.websocket.core.WebSocketAckRequest; |
|
|
|
import com.fr.cbb.websocket.core.WebSocketAckRequest; |
|
|
|
import com.fr.cbb.websocket.core.WebSocketClientProvider; |
|
|
|
import com.fr.cbb.websocket.core.WebSocketClientProvider; |
|
|
|
import com.fr.cbb.websocket.core.WebSocketConfiguration; |
|
|
|
import com.fr.cbb.websocket.core.WebSocketConfiguration; |
|
|
|
|
|
|
|
import com.fr.cbb.websocket.core.WebSocketServerFactory; |
|
|
|
import com.fr.cbb.websocket.core.WebSocketServerProvider; |
|
|
|
import com.fr.cbb.websocket.core.WebSocketServerProvider; |
|
|
|
import com.fr.cbb.websocket.holder.EventHolder; |
|
|
|
import com.fr.cbb.websocket.holder.EventHolder; |
|
|
|
import com.fr.cbb.websocket.listener.AbstractDataListener; |
|
|
|
import com.fr.cbb.websocket.listener.SocketDataListener; |
|
|
|
import com.fr.cbb.websocket.core.WebSocketServerFactory; |
|
|
|
|
|
|
|
import com.fr.concurrent.NamedThreadFactory; |
|
|
|
import com.fr.concurrent.NamedThreadFactory; |
|
|
|
import com.fr.design.DesignerEnvManager; |
|
|
|
import com.fr.design.DesignerEnvManager; |
|
|
|
import com.fr.design.login.DesignerLoginType; |
|
|
|
import com.fr.design.login.DesignerLoginType; |
|
|
@ -89,7 +89,7 @@ public class LoginAuthServer { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void initEventListener() { |
|
|
|
private void initEventListener() { |
|
|
|
server.addEventListener(EventHolder.build("bbsAccountLogin", BBSAccountLogin.class, new AbstractDataListener<BBSAccountLogin>() { |
|
|
|
server.addEventListener(EventHolder.build("bbsAccountLogin", BBSAccountLogin.class, new SocketDataListener<BBSAccountLogin>() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void onData(WebSocketClientProvider client, BBSAccountLogin data, WebSocketAckRequest ackRequest) throws Exception { |
|
|
|
public void onData(WebSocketClientProvider client, BBSAccountLogin data, WebSocketAckRequest ackRequest) throws Exception { |
|
|
|
// 保存登录信息到.FineReport100配置中
|
|
|
|
// 保存登录信息到.FineReport100配置中
|
|
|
|