Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redisbroadcaster won't broadcast on distant server #231

Open
HugoMackpaye opened this issue Jul 17, 2016 · 1 comment
Open

Redisbroadcaster won't broadcast on distant server #231

HugoMackpaye opened this issue Jul 17, 2016 · 1 comment

Comments

@HugoMackpaye
Copy link

Hello,

I'm running this example on my local machine :

@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

@HugoMackpaye
Copy link
Author

Hello,

Anybody can help ?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant