Dhaval Gujarati
Dhaval Gujarati

Reputation: 31

How to send message to particular Client Channel in Netty from netty server handler

Right now i am confusing to get client channel without iterating channels group so how i can achieve that things.

Upvotes: 0

Views: 563

Answers (1)

Pete Houston
Pete Houston

Reputation: 15089

You can store each Channel in a HashMap<String, ChannelHandlerContext> where key can be Channel.id().asLongText().

Upvotes: 1

Related Questions