You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Path("/pubsub/{topic}")
@Produces("text/html;charset=ISO-8859-1")
public class RedisPubSub {
private
@PathParam("topic")
RedisBroadcaster topic;
@GET
public SuspendResponse<String> subscribe() {
return new SuspendResponse.SuspendResponseBuilder<String>()
.broadcaster(topic)
.outputComments(true)
.addListener(new EventsLogger())
.build();
}
@POST
@Broadcast
public Broadcastable publish(@FormParam("message") String message) {
return new Broadcastable(message, "", topic);
}
}
And I have no problem, when I hit the URL, my response is Suspended and whenever I PUBLISH to Redis, it displays in my browser.
The problem comes when I deploy to remote server. My app connects without any trouble to Redis, when I hit the URL, the Response is suspended but whenever I PUBLISH, it does PUBLISH to redis, but nothing appears on the screen or in the chrome console on the suspended request frames.
Any help ?
Thanks
The text was updated successfully, but these errors were encountered:
Hello,
I'm running this example on my local machine :
And I have no problem, when I hit the URL, my response is Suspended and whenever I PUBLISH to Redis, it displays in my browser.
The problem comes when I deploy to remote server. My app connects without any trouble to Redis, when I hit the URL, the Response is suspended but whenever I PUBLISH, it does PUBLISH to redis, but nothing appears on the screen or in the chrome console on the suspended request frames.
Any help ?
Thanks
The text was updated successfully, but these errors were encountered: