我app.js
从以下代码开始
var express = require("express"),
app = express(),
http = require('http'),
server = http.createServer(app),
io = require('socket.io').listen(server),
games = require("./lib/games");
现在我需要socket.io
在名为游戏的外部库中使用,我该怎么做?