protected static SessionService create ( IPublisherInfo self , String sessionId , IEventManager eventManager , ISessionUpdate callback ) { String sendEvent = StrUtil . formatMessage ( EVENT_SEND , sessionId ) ; String joinEvent = StrUtil . formatMessage ( EVENT_JOIN , sessionId ) ; String leaveEvent = StrUtil . formatMessage ( EVENT_LEAVE , sessionId ) ; return new SessionService ( self , sendEvent , joinEvent , leaveEvent , eventManager , callback ) ; }
Creates a service handler for a chat session .