// Path: src/main/java/org/nextrtc/signalingserver/api/NextRTCEventBus.java
// @Slf4j
// @Service(Names.EVENT_BUS)
// @Scope("singleton")
// public class NextRTCEventBus {
//     private EventBus eventBus;
// 
//     public NextRTCEventBus() {
//         this.eventBus = new EventBus();
//     }
// 
//     public void post(NextRTCEvent event) {
//         if (event.type() != NextRTCEvents.MESSAGE) {
//             log.info("POSTED EVENT: " + event);
//         }
//         eventBus.post(event);
//     }
// 
//     @Deprecated
//     public void post(Object o) {
//         eventBus.post(o);
//     }
// 
//     public void register(Object listeners) {
//         log.info("REGISTERED LISTENER: " + listeners);
//         eventBus.register(listeners);
//     }
// 
// }


import org.nextrtc.signalingserver.api.NextRTCEventBus;
import org.nextrtc.signalingserver.domain.*;
import org.springframework.stereotype.Component;
import javax.inject.Inject;
import static org.nextrtc.signalingserver.api.NextRTCEvents.TEXT;
package org.nextrtc.signalingserver.cases;




@Component(Signals.TEXT_HANDLER)
public class TextMessage implements SignalHandler {

// Path: src/main/java/org/nextrtc/signalingserver/api/NextRTCEventBus.java
// @Slf4j
// @Service(Names.EVENT_BUS)
// @Scope("singleton")
// public class NextRTCEventBus {
//     private EventBus eventBus;
// 
//     public NextRTCEventBus() {
//         this.eventBus = new EventBus();
//     }
// 
//     public void post(NextRTCEvent event) {
//         if (event.type() != NextRTCEvents.MESSAGE) {
//             log.info("POSTED EVENT: " + event);
//         }
//         eventBus.post(event);
//     }
// 
//     @Deprecated
//     public void post(Object o) {
//         eventBus.post(o);
//     }
// 
//     public void register(Object listeners) {
//         log.info("REGISTERED LISTENER: " + listeners);
//         eventBus.register(listeners);
//     }
// 
// }


// Path: src/main/java/org/nextrtc/signalingserver/cases/TextMessage.java
import org.nextrtc.signalingserver.api.NextRTCEventBus;
import org.nextrtc.signalingserver.domain.*;
import org.springframework.stereotype.Component;
import javax.inject.Inject;
import static org.nextrtc.signalingserver.api.NextRTCEvents.TEXT;

package org.nextrtc.signalingserver.cases;




@Component(Signals.TEXT_HANDLER)
public class TextMessage implements SignalHandler {

    private NextRTCEventBus eventBus;