title: Connecting directly to Redis with (client side) javascript?
body: <p>Is there a way to directly connect to Redis using client side (not Node.js) javascript?</p>
  
  <p>I'm already using Node.js + PHP + Redis + Socket.io (for the client) successfully for a few projects. However, I really think this could be further simplified to something like PHP + Redis + Browser javascript - taking out the Node.js server which is just another server I'd rather not use if it isn't necessary. For simple things, I think it would be better to just connect directly to Redis using Javascript.</p>
  
  <p>From what I understand, Redis just serves its request through a port so any language that can make requests to that port would work. In theory, couldn't you just hit the redis server's port using client side javascript?</p>
  
  <p>I'm mostly interested in the publish/subscribe functions, which may or may not be possible.</p>
  
  <p>I'm not sure if you can access a non-port 80 port using AJAX, but you technically should be able to forward Redis' port to port 80 using Nginx reverse proxy or something.</p>
  
  <p>Any ideas? Just a thought. I'm very happy with my current solution, but it doesn't hurt to wonder if we could do this even better or more efficiently.</p>