first commit

This commit is contained in:
kicap1992
2022-08-21 23:56:32 +08:00
parent 58856f6687
commit a8ccdfc32b
2 changed files with 6 additions and 3 deletions

3
.gitignore vendored
View File

@ -1,2 +1,5 @@
# ignore node
/node_modules
# local env files
.env*.local

View File

@ -3,8 +3,8 @@ const router = express.Router();
require('dotenv/config');
const { deviceModel, newDeviceModel, notificationModel } = require('../models/device_model');
const io_sock = require("socket.io-client");
const socket = io_sock(`https://tanah-longosor-be.herokuapp.com/`);
// const socket = io_sock(`http://192.168.43.125:3004/`);
// const socket = io_sock(`https://tanah-longosor-be.herokuapp.com/`);
const socket = io_sock(`http://192.168.43.125:3004/`);
function send_notif(message, id, status, lat, lng) {