2011-08-31 3 views
1

Grails 대기 프로젝트뿐만 아니라 GWT 대기 데모 프로젝트도 성공적으로 실행할 수있었습니다. GWT에서의 분위기 클라이언트를 전원 Grails의 백엔드를 사용하는 경우 그러나, 다음과 같은 메시지와 함께 작동이 중지 :GWT와 Grails with Atmosphere 함께 작동하도록 플러그인

comet.beforeDisconnected 
comet.disconnected 
comet.error [connected=false] (0)0 
comet.error [connected=true] (-1)Invalid message received: <!-- ---------------------------------------------------------------- http://github.com/Atmosphere ------------------------------------------------------------------------ --> 
comet.beforeDisconnected 
comet.error [connected=true] (-1)Expecting disconnection but received message: <!-- Welcome to the Atmosphere Framework. To work with all the browsers when suspending connection, Atmosphere must output some data to makes WebKit based browser working.--> 

어떤 조언을?

답변

1

: 당신은, 예를 일시 중단 할 때 메시지를 작성 비활성화을 시도 할 수 있습니다 . 아직 예상대로 작동하지 않지만 수동으로 AtmosphereServlet을 주입하는 것과 같은 방식으로 작동합니다.

1

출력이 더 많습니까? 아마 예외일까요?

메시지를 브로드 캐스트하는 중에 발생합니까? 브로드 캐스트시 다시 시작되도록 일시 중단 된 연결을 구성했을 수 있습니다.

수신 메시지가 문제 일 수 있습니다.

새로운 SuspendResponse.SuspendResponseBuilderString ... .outputComments (false)를 ... .build() 그것은 모든 올바르게 CometHandler 구성에 대한했다

+0

문제는 프로토콜 및 grails 2의 재미있는 문제인 것 같습니다. – fabiangebert

관련 문제