{"action":"created","issue":{"url":"https://api.github.com/repos/typesafehub/netty-reactive-streams/issues/1","labels_url":"https://api.github.com/repos/typesafehub/netty-reactive-streams/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/typesafehub/netty-reactive-streams/issues/1/comments","events_url":"https://api.github.com/repos/typesafehub/netty-reactive-streams/issues/1/events","html_url":"https://github.com/typesafehub/netty-reactive-streams/issues/1","id":92792651,"number":1,"title":"make ServerChannel as a Pubisher[Channel]","user":{"login":"hepin1989","id":501740,"avatar_url":"https://avatars.githubusercontent.com/u/501740?v=3","gravatar_id":"","url":"https://api.github.com/users/hepin1989","html_url":"https://github.com/hepin1989","followers_url":"https://api.github.com/users/hepin1989/followers","following_url":"https://api.github.com/users/hepin1989/following{/other_user}","gists_url":"https://api.github.com/users/hepin1989/gists{/gist_id}","starred_url":"https://api.github.com/users/hepin1989/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hepin1989/subscriptions","organizations_url":"https://api.github.com/users/hepin1989/orgs","repos_url":"https://api.github.com/users/hepin1989/repos","events_url":"https://api.github.com/users/hepin1989/events{/privacy}","received_events_url":"https://api.github.com/users/hepin1989/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-03T05:06:36Z","updated_at":"2015-07-06T03:09:21Z","closed_at":null,"body":"I was wandering how about make the``` ServerChannel ```as ```Publisher[Channel]```,and then we setup the ChannelPipeline ,register it to eventloop.and then we may get can get the Publisher for the specified channel via``` def StreamedChannelHandler.publisher:Future[Publisher]```?\r\nthe publisher will only return and always return the same instance after the channel is active and the handler is added to the pipeline.\r\n"},"comment":{"url":"https://api.github.com/repos/typesafehub/netty-reactive-streams/issues/comments/118700730","html_url":"https://github.com/typesafehub/netty-reactive-streams/issues/1#issuecomment-118700730","issue_url":"https://api.github.com/repos/typesafehub/netty-reactive-streams/issues/1","id":118700730,"user":{"login":"jroper","id":105833,"avatar_url":"https://avatars.githubusercontent.com/u/105833?v=3","gravatar_id":"","url":"https://api.github.com/users/jroper","html_url":"https://github.com/jroper","followers_url":"https://api.github.com/users/jroper/followers","following_url":"https://api.github.com/users/jroper/following{/other_user}","gists_url":"https://api.github.com/users/jroper/gists{/gist_id}","starred_url":"https://api.github.com/users/jroper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jroper/subscriptions","organizations_url":"https://api.github.com/users/jroper/orgs","repos_url":"https://api.github.com/users/jroper/repos","events_url":"https://api.github.com/users/jroper/events{/privacy}","received_events_url":"https://api.github.com/users/jroper/received_events","type":"User","site_admin":false},"created_at":"2015-07-06T03:09:21Z","updated_at":"2015-07-06T03:09:21Z","body":"I think creating a publisher of channels is as simple as doing this:\r\n\r\n```java\r\nBootstrap bootstrap = new Bootstrap();\r\nPublisherHandler<Channel> publisher = new PublisherHandler<>(Channel.class);\r\nbootstrap.handler(publisher);\r\nbootstrap.localAddress(...);\r\nbootstrap.group(...);\r\nbootstrap.bind();\r\n```\r\n\r\nEach subscriber will then need to add handlers to the pipeline, and then they need to register the channel to an event loop."}}