wandenberg / nginx-push-stream-module

A pure stream http push technology for your Nginx setup. Comet made easy and really scalable.
Other
2.22k stars 295 forks source link

How to push data to websocket #34

Closed omares closed 12 years ago

omares commented 12 years ago

My client is able to connect to the subscriber, but the messages i push to the publisher dont pop up at the subscriber. Am i doing something wrong or isnt it possible to push data through a publisher to a subscriber websocket?

omares commented 12 years ago

My fault, had a client issue - pushing data to the publisher works.

wandenberg commented 12 years ago

Hi. Can you be more specific? To know if you are doing something wrong, I need to know what you are doing exactly, your configuration, which requests are you doing, ... Anyway, yes, you can send messages to a websockect subscriber through a publisher location.

On Sat, Jun 23, 2012 at 10:30 PM, Ota Mares < reply@reply.github.com

wrote:

My client is able to connect to the subscriber, but the messages i push to the publisher dont pop up at the subscriber. Am i doing something wrong or isnt it possible to push data through a publisher to a subscriber websocket?


Reply to this email directly or view it on GitHub: https://github.com/wandenberg/nginx-push-stream-module/issues/34

omares commented 12 years ago

Hey. I was just experimenting to find out if i want to use websockets or eventsource. To handle the client side events i used jquery.socket plugin (https://github.com/flowersinthesand/jquery-socket) and came to the conclusion its not usable in its current state because my pushed messages did not show up in the console. So its not a push-stream issue.

Anyway i decided to use eventsource because websockets are to complicated for my issue.