simple-message-notifier
v2.1.3
Published
Service for sending emails,phone,push and socket notifications to client side
Downloads
13
Maintainers
Readme
npm install -g --save simple-message-notifier
git clone https://github.com/Armen6964/simple-message-notifier.git
open ./config/global.js file
const port = 8020; //change you'r server port here
{
host: 'localhost', //enter you'r mysql host
username: 'q', //enter you'r mysql username
password: 'q', //enter you'r mysql password
database: 'kanban', //enter you'r database name
dialect: 'mysql', //this server only work with mysql database so dont't edit this line
logging: false //Enable/Disable logging in console from sequelize
;
{
intervalInSeconds : 2, //update messageing sheduling time
`https : {`
`isEnabled : true, //enable or disable https`
`keys : {`
`ca : fs.readFileSync(__dirname+"/certs/ca.pem","utf-8"),` //setup path to your real ca.pem file
`private : fs.readFileSync(__dirname+"/certs/private.key","utf-8"),` //setup path to your real private.pem file
`cert : fs.readFileSync(__dirname+"/certs/cert.pem","utf-8")` //setup path to your real cert.pem file
`}`
`},`
};
host : https://{you'r host}:{your'r port}/add
[{
"clientId": 1,
"push_web": "",
"push_android": "",
"push_ios": "",
"push_windows": "",
"push_macOS": "",
"emails": "[email protected]",
"phone_number": "+3740000000",
"options": {}
}]
let object = {id : 1,name : 'Name',surname : 'Surname'}
socket.emit("join",object)
socket.on("connected",(data)=>{
console.log("SOCKET CONNECTED WITH SERVER...");
console.log(data);
});
socket.on("example",(data=>{
console.log(data);
})
TODO list