Package com.corundumstudio.socketio.namespace

Examples of com.corundumstudio.socketio.namespace.Namespace.onEvent()


            if (packet.getArgs() != null
                    && !packet.getArgs().isEmpty()) {
                data = packet.getArgs().get(0);
            }
            Namespace namespace = namespacesHub.get(packet.getEndpoint());
            namespace.onEvent(client, packet.getName(), data, ackRequest);
            break;
        }

        case HEARTBEAT:
            heartbeatHandler.onHeartbeat(client.getBaseClient());
View Full Code Here


            Namespace namespace = namespacesHub.get(packet.getEndpoint());
            List<Object> args = Collections.emptyList();
            if (packet.getArgs() != null) {
                args = packet.getArgs();
            }
            namespace.onEvent(client, packet.getName(), args, ackRequest);
            break;
        }

        case HEARTBEAT:
            heartbeatHandler.onHeartbeat(client.getBaseClient());
View Full Code Here

                Namespace namespace = namespacesHub.get(packet.getNsp());
                List<Object> args = Collections.emptyList();
                if (packet.getData() != null) {
                    args = packet.getData();
                }
                namespace.onEvent(client, packet.getName(), args, ackRequest);
            }
            break;
        }

        case CLOSE:
View Full Code Here

            if (packet.getArgs() != null
                    && !packet.getArgs().isEmpty()) {
                data = packet.getArgs().get(0);
            }
            Namespace namespace = namespacesHub.get(packet.getEndpoint());
            namespace.onEvent(client, packet.getName(), data, ackRequest);
            break;
        }

        case HEARTBEAT:
            heartbeatHandler.onHeartbeat(client.getBaseClient());
View Full Code Here

            Namespace namespace = namespacesHub.get(packet.getEndpoint());
            List<Object> args = Collections.emptyList();
            if (packet.getArgs() != null) {
                args = packet.getArgs();
            }
            namespace.onEvent(client, packet.getName(), args, ackRequest);
            break;
        }

        case HEARTBEAT:
            heartbeatHandler.onHeartbeat(client.getBaseClient());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.