backup
This commit is contained in:
1 parent
02ff381993
commit
fee204a338
5 files changed
+368
-2
No files matched your search
@@ -1,6 +1,35 @@
|
||||
const express = require("express");
|
||||
const router = express.Router();
|
||||
|
||||
// var socketList = [];
|
||||
|
||||
// io.sockets.on("connection", function (socket) {
|
||||
// // add socket to list on connection
|
||||
// socketList.push(socket);
|
||||
|
||||
// // remove socket from list on disconnect
|
||||
// socket.on("disconnect", function () {
|
||||
// socketList.splice(socketList.indexOf(socket), 1);
|
||||
// });
|
||||
|
||||
// socket.on("search", function (country) {
|
||||
// // Give list of sockets where (socket.country) = country
|
||||
// var filteredList = socketList.filter(function (s) {
|
||||
// return s.country == country;
|
||||
// });
|
||||
// });
|
||||
// });
|
||||
|
||||
router.post("/getRides", function (req, res, next) {
|
||||
var io = req.app.get("io");
|
||||
|
||||
// io.to(//socket.id//).emit("message", data);
|
||||
|
||||
// db.rides.find(function(err, docs) {
|
||||
// res.json(docs);
|
||||
// });
|
||||
});
|
||||
|
||||
router.get("/", function (req, res) {
|
||||
res.render("flasher");
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user