내가 뭔가하고 싶은 여러 후속 뷰 렌더링 : 기본적으로Node.js를 익스프레스
//client -> notifies server that client is connected.
//server -> begins fetching information from DB (series of both async and synchronous requests).
//as sets of data become available on server -> server pushes updates to client via res.render()
내가 클라이언트의 메뉴 항목이, 그리고 서버가 도착 가져 오는 데이터와 해당 메뉴를 업데이트 할을 준비된. 이 일을 할 수있는 방법이 있습니까? 나는에 한 번 응답이 전송됩니다,라고 렌더링 때문에
res.render('something');
// again
res.render('somethingElse');
을 수행하고 다시 호출
". : 그들이 보낸 후 헤더를 설정할 수 없습니다 오류"할 수없는 렌더링 할 수 없습니다 통지
제안 사항?
서버에서 클라이언트로 데이터를 푸시합니다. 폴링 솔루션의 대안? –