Skip to content

add remove methode for listener#845

Open
ulyssedu45 wants to merge 3 commits intomrniko:masterfrom
ulyssedu45:master
Open

add remove methode for listener#845
ulyssedu45 wants to merge 3 commits intomrniko:masterfrom
ulyssedu45:master

Conversation

@ulyssedu45
Copy link
Copy Markdown

Addition of a remove method for listeners

@ulyssedu45
Copy link
Copy Markdown
Author

Add close methode for client

Copy link
Copy Markdown
Contributor

@liangyuanpeng liangyuanpeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your work and add some comment.

Comment thread pom.xml
<groupId>com.corundumstudio.socketio</groupId>
<artifactId>netty-socketio</artifactId>
<version>1.7.20-SNAPSHOT</version>
<version>1.7.20</version>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this change is don't need to update.

if(entry.getValue().getListeners().contains(listener)){
entry.getValue().getListeners().remove(listener);
}
if(entry.getValue().getListeners().size() == 0){
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO,Use isEmpty would be great.

void disconnect();

/**
* Disconnect client
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's different with disconnect() ? it's possible to add this change to disconnect ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants