Package io.undertow.websockets.api

Examples of io.undertow.websockets.api.WebSocketSession


                                    @Override
                                    public void onTextFrame(final WebSocketSession session, final WebSocketFrameHeader header, final CharSequence payload) {
                                        synchronized (sessions) {
                                            Iterator<WebSocketSession> it = sessions.iterator();
                                            while (it.hasNext()) {
                                                final WebSocketSession sess = it.next();
                                                try {
                                                    sess.sendText(payload);
                                                } catch (IOException e) {
                                                    it.remove();
                                                }
                                            }
                                        }
View Full Code Here


                            @Override
                            public void onTextFrame(final WebSocketSession session, final WebSocketFrameHeader header, final CharSequence payload) {
                                synchronized (sessions) {
                                    Iterator<WebSocketSession> it = sessions.iterator();
                                    while (it.hasNext()) {
                                        final WebSocketSession sess = it.next();
                                        try {
                                            sess.sendText(payload);
                                        } catch (IOException e) {
                                            it.remove();
                                        }
                                    }
                                }
View Full Code Here

TOP

Related Classes of io.undertow.websockets.api.WebSocketSession

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.