nicolasff / webdis

A Redis HTTP interface with JSON output
https://webd.is
BSD 2-Clause "Simplified" License
2.82k stars 307 forks source link

Websocket logging #101

Open rooduck opened 10 years ago

rooduck commented 10 years ago

Hi Nicolas!

Is it possible to log websocket commands going to redis through webdis? In current config i have verbosity level 4 and websocket connection working, but no information is logging. Althought, all adress line commands are logging well.

My issue is that all websocket connections are closed with exit code 1006 after completing the first command (except the "SUBSCRIBE" one). For example, for your webscocket example testJSON() function i'm getting (in Firebug)

JSON socket connected! JSON received: {"SET":[true,"OK"]} onClose: error.code 1006

The onError event is'nt working, and after the {"SET":[true,"OK"]} response my connection closes. GET command is'nt working too.