Package org.auto.comet.example.chat.service

Examples of org.auto.comet.example.chat.service.UserIdRepeatException


  @Autowired
  private ChatRoomSocketHandler socketHandler;

  public void login(Serializable userId) throws UserIdRepeatException {
    if (this.socketHandler.hasId(userId)) {
      throw new UserIdRepeatException();
    }
    // 登录了给所有在线的人发广播
    JSONObject message = new JSONObject();
    message.put(COMMAND_KEY, COMMAND_LOGIN);
    message.put("userId", userId);
View Full Code Here

TOP

Related Classes of org.auto.comet.example.chat.service.UserIdRepeatException

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.