File tree Expand file tree Collapse file tree
android/src/main/java/com/itsclicking/clickapp/fluttersocketio Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,4 +14,7 @@ public interface ISocketIOManager {
1414 void disconnect (String domain , String namespace );
1515 void destroySocket (String domain , String namespace );
1616 void destroyAllSockets ();
17+
18+ String getSocketId (String domain , String namespace );
19+ SocketIO getSocket (String socketId );
1720}
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ private SocketIOManager() {
2323 mSockets = new HashMap <>();
2424 }
2525
26- private SocketIO getSocket (String socketId ) {
26+ public SocketIO getSocket (String socketId ) {
2727 if (mSockets != null && !Utils .isNullOrEmpty (socketId )) {
2828 Utils .log ("TOTAL SOCKETS: " , String .valueOf (mSockets .size ()));
2929 return mSockets .get (socketId );
@@ -58,7 +58,7 @@ private boolean isConnected(SocketIO socketIO) {
5858 return socketIO != null && socketIO .isConnected ();
5959 }
6060
61- private String getSocketId (String domain , String namespace ) {
61+ public String getSocketId (String domain , String namespace ) {
6262 if (!Utils .isNullOrEmpty (domain )) {
6363 return domain + (namespace != null ? namespace : "" );
6464 }
You can’t perform that action at this time.
0 commit comments