Skip to content

Conversation

ulyssedu45
Copy link

Addition of a remove method for listeners

@ulyssedu45
Copy link
Author

Add close methode for client

Copy link
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.

<groupId>com.corundumstudio.socketio</groupId>
<artifactId>netty-socketio</artifactId>
<version>1.7.20-SNAPSHOT</version>
<version>1.7.20</version>
Copy link
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
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
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