//接受消息,并发送出去
@Override
public void handleMessage(WebSocketSession session,
WebSocketMessage<?> message) throws Exception {
Map<String, Object> attributes = session.getAttributes();
/* WUserToken user = (WUserToken) attributes.get(SessionManager.USER_SESSION);
WMachineList machine = (WMachineList) attributes.get(SessionManager.MACHINE_SESSION);
sessionManager.sendMessage(machine.getNumber() ,user, message.getPayload()+"");
*/
MessageInfo messageInfo = (MessageInfo) attributes.get("message_info");
WMachineList machine = (WMachineList) attributes.get("w_machine_list");
sessionManager.sendMessage(machine.getNumber(),messageInfo.getUserId(),message.getPayload()+"");
}
中 message.getPayload()表示什么意思