Package com.corundumstudio.socketio.transport

Examples of com.corundumstudio.socketio.transport.NamespaceClient


        while (content.isReadable()) {
            try {
                Packet packet = decoder.decodePackets(content, client.getSessionId());
                Namespace ns = namespacesHub.get(packet.getEndpoint());

                NamespaceClient nClient = (NamespaceClient) client.getChildClient(ns);
                packetListener.onPacket(packet, nClient);
            } catch (Exception ex) {
                String c = content.toString(CharsetUtil.UTF_8);
                log.error("Error during data processing. Client sessionId: " + client.getSessionId() + ", data: " + c, ex);
            }
View Full Code Here


            }
            while (content.readable()) {
                Packet packet = decoder.decodePackets(content, client.getSessionId());
                Namespace ns = namespacesHub.get(packet.getEndpoint());

                NamespaceClient nClient = (NamespaceClient) client.getChildClient(ns);
                packetListener.onPacket(packet, nClient);
            }
        } else {
            ctx.sendUpstream(e);
        }
View Full Code Here

                if (ns == null) {
                    log.warn("Can't find namespace for endpoint: {} probably it was removed.", packet.getEndpoint());
                    return;
                }

                NamespaceClient nClient = (NamespaceClient) client.getChildClient(ns);
                packetListener.onPacket(packet, nClient);
            } catch (Exception ex) {
                String c = content.toString(CharsetUtil.UTF_8);
                log.error("Error during data processing. Client sessionId: " + client.getSessionId() + ", data: " + c, ex);
                return;
View Full Code Here

                if (packet.getType() == PacketType.CONNECT) {
                    client.addChildClient(ns);
                }

                NamespaceClient nClient = (NamespaceClient) client.getChildClient(ns);
                if (nClient == null) {
                    log.debug("Can't find namespace client in namespace: {}, sessionId: {} probably it was disconnected.", ns.getName(), client.getSessionId());
                    return;
                }
                packetListener.onPacket(packet, nClient);
View Full Code Here

            while (content.readable()) {
                try {
                    Packet packet = decoder.decodePackets(content, client.getSessionId());
                    Namespace ns = namespacesHub.get(packet.getEndpoint());

                    NamespaceClient nClient = (NamespaceClient) client.getChildClient(ns);
                    packetListener.onPacket(packet, nClient);
                } catch (Exception ex) {
                    String c = content.toString(CharsetUtil.UTF_8);
                    log.error("Error during data processing. Client sessionId: " + client.getSessionId() + ", data: " + c, ex);
                }
View Full Code Here

    public NamespaceClient getChildClient(Namespace namespace) {
        return namespaceClients.get(namespace);
    }

    public NamespaceClient addNamespaceClient(Namespace namespace) {
        NamespaceClient client = new NamespaceClient(this, namespace);
        namespaceClients.put(namespace, client);
        return client;
    }
View Full Code Here

                if (packet.getSubType() == PacketType.CONNECT) {
                    client.addNamespaceClient(ns);
                }

                NamespaceClient nClient = client.getChildClient(ns);
                if (nClient == null) {
                    log.debug("Can't find namespace client in namespace: {}, sessionId: {} probably it was disconnected.", ns.getName(), client.getSessionId());
                    return;
                }
                packetListener.onPacket(packet, nClient, message.getTransport());
View Full Code Here

        while (content.isReadable()) {
            try {
                Packet packet = decoder.decodePackets(content, client.getSessionId());
                Namespace ns = namespacesHub.get(packet.getEndpoint());

                NamespaceClient nClient = (NamespaceClient) client.getChildClient(ns);
                packetListener.onPacket(packet, nClient);
            } catch (Exception ex) {
                String c = content.toString(CharsetUtil.UTF_8);
                log.error("Error during data processing. Client sessionId: " + client.getSessionId() + ", data: " + c, ex);
                return;
View Full Code Here

                if (packet.getType() == PacketType.CONNECT) {
                    client.addChildClient(ns);
                }

                NamespaceClient nClient = (NamespaceClient) client.getChildClient(ns);
                if (nClient == null) {
                    log.debug("Can't find namespace client in namespace: {}, sessionId: {} probably it was disconnected.", ns.getName(), client.getSessionId());
                    return;
                }
                packetListener.onPacket(packet, nClient);
View Full Code Here

TOP

Related Classes of com.corundumstudio.socketio.transport.NamespaceClient

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.