Git Product home page Git Product logo

Comments (9)

nicolasff avatar nicolasff commented on July 28, 2024

Hello Pablo,

Thanks for reporting this; I'm closing it as a duplicate of #49, let's keep the conversation there.

Regards,

Nicolas

from webdis.

pablochacin avatar pablochacin commented on July 28, 2024

Hi Nocolas

This issue you closed is the #49. Which one does it duplicate?

Pablo

On 07/06/2012 12:17 AM, Nicolas Favre-Felix wrote:

Hello Pablo,

Thanks for reporting this; I'm closing it as a duplicate of #49, let's keep the conversation there.

Regards,

Nicolas


Reply to this email directly or view it on GitHub:
#49 (comment)

from webdis.

nicolasff avatar nicolasff commented on July 28, 2024

@pchacin oops, that was #50. Reopening this one.

from webdis.

PhE avatar PhE commented on July 28, 2024

What is the expected output of ./websocket -v ?
When I run, it hangs without displaying anything :

$ ./websocket -v

When I run, it without webdis I get :

$ ./websocket -v
connect: ret=-1: Connection refused
connect: ret=-1: Connection refused
connect: ret=-1: Connection refused
connect: ret=-1: Connection refused
No message was read.

When I shut down webdis while it is running I get :

$ ./websocket -v
ret=0
ret=0
ret=0
ret=0

When I shut down redis while it is running I get :

$ ./websocket -v
ret=-1
ret=-1
ret=-1
ret=-1
No message was read.

from webdis.

PhE avatar PhE commented on July 28, 2024

websocket not working is turning to a big issue for me :-/
We have to use an old Chrome version (18) on windows to make it work and it is not easy to get on old Chrome version installer.
On Linux this is even worth : there is no way to get on old Chrome version on a recent distribution.
Is there any plan to make the websocket feature work again ?

from webdis.

RichardJohnn avatar RichardJohnn commented on July 28, 2024

does this just not work at the moment? that would explain it!
./websocket -v just hangs whether i close redis before or after or leave it running.. and if i publish something..going to the site says it cannot connect to ws://whathaveyou:7379

please give a heads up if i can see this work!! thank you i dig this concept

from webdis.

RichardJohnn avatar RichardJohnn commented on July 28, 2024

whoa! if i just run webdis instead of the websocket program, the websocket.html page loads everything up fine. (i did set websockets to true in the .json)
this is using Chromium Version 20.0.1132.47 and Firefox 16.0.1

I think you should remove the websocket program, unless I just dont understand what its for.. it lead to two afternoons of confusion, hoho!

from webdis.

b1c9g76 avatar b1c9g76 commented on July 28, 2024

(NB: Newbie here)

Similar to this, I modified the test to issue a SUBSCRIBE and I get back a subscribe reply as expected and then the websocket closes straight away. I was expecting it to stay up similarly to issuing the same SUBSCRIBE through a webbrowser where it stays open and recieves data as PUBLISH commands are issued.

What am I missing?

var jsonSocket = new WebSocket("ws://127.0.0.1:7379/.json");
jsonSocket.onopen = function() {
console.log("JSON socket connected!");
jsonSocket.send(JSON.stringify(["SUBSCRIBE", "test"]));
};
jsonSocket.onmessage = function(messageEvent) {
console.log("JSON received:", messageEvent.data);
};
jsonSocket.onclose = function() {
console.log("JSON closed");
};

Console output:

JSON socket connected! test.html:55
JSON received: {"SUBSCRIBE":["subscribe","test",1]} test.html:60
JSON closed

from webdis.

konklone avatar konklone commented on July 28, 2024

Does commit 2cfc27d fix this?

from webdis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.