title: Sending message to Socket.IO via get request
body: <p>I have an express node.js server serving Socket.io.  I would like the ability to make get requests to the express server that will automatically send a message to a channel.  </p>
  
  <pre><code>var app = require('express').createServer()
    , io = require('socket.io').listen(app)
  app.listen(80);
  app.get('/:channel/:message', function (req, res) {
    //Code to create socket
    socket.emit("sent from get", {channel:req.params.channel, message:req.params.message})
  });
  
  io.sockets.on('connection', function (socket) {
    socket.on('sent from get', function (data) {
      socket.broadcast.to(data.channel).emit('channel message', { message: data.message});
    });
  });
  </code></pre>
  
  <p>How to I create (and destroy) a socket connection in the <code>app.get</code> block?</p>
  
  <p>(For clarity, I want to use this to send a quick message from a rails server when a particular object is saved, and have a message pushed to each appropriate user.)</p>