All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.healthy.common.websocket.handler.PlanTextMessageHandler Maven / Gradle / Ivy

There is a newer version: 2.0.0-M1
Show newest version
package com.healthy.common.websocket.handler;

import com.healthy.common.websocket.message.JsonWebSocketMessage;
import org.springframework.web.socket.WebSocketSession;

/**
 * 普通文本类型(非指定json类型)的消息处理器 即消息不满足于我们定义的Json类型消息时,所使用的处理器
 *
 * @author xm.z
 * @see JsonWebSocketMessage
 */
public interface PlanTextMessageHandler {

	/**
	 * 普通文本消息处理
	 * @param session 当前接收消息的session
	 * @param message 文本消息
	 */
	void handle(WebSocketSession session, String message);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy