pipeline.addLast("handler", new MyWebSocketHandler()); 之前写成pipeline.addLast("handler", new MyWebSocketChannelHandler()); 了,结果报的重复的问题。改了就好了
好像是handlerRemoved里会自己移除
当然要加return了