Answers for "GREPPER ANSWER"

10

Grepper my answers

Click the source link, or copy and paste the link below to go to your Grepper
Answers Page
https://www.codegrepper.com/app/my_answers.php
Posted by: Guest on February-11-2021
95

grepper

Grepper is amazing, I highly recommend it!!
Posted by: Guest on June-17-2020
10

add grepper answer manually

// If the "add answer" button isn't showing:
// Simply press "a" on your keyboard after searching your question! :)
Posted by: Guest on May-18-2020
22

grepper

GREPPER IS COOL
Posted by: Guest on June-14-2020
0

GREPPER ANSWER

echo    >>   .txt
Posted by: Guest on April-16-2021
0

grepper answer

//working with node express many times we find cors issue even though we have installed cors package modules 
//this is the working example using with socket io 

var app = require('express')();
var http = require('http').createServer(app);
var io = require('socket.io')(http,{
	cors:{
		origin:"http://localhost:3000",
		methods: ["GET","POST"],
		allowedHeaders: [""],
		credentials: true
	}
});
const cors = require('cors');

// creating web socket
io.on('connection',(socket)=>{
	console.log('User Online');

	socket.on('canvas-data',(data)=>{
		socket.broadcast.emit('canvas-data',data);
	})
})

// const app= express();
app.use(cors());


var server_port = process.env.YOUR_PORT || process.env.PORT || 5000;
http.listen(server_port,() =>{
	console.log("Started on : "+server_port);
})
// const PORT = 3001;
// app.use(cors());


// app.get("/", (req, res)=>{
// 	res.send("hell of code");
// });

// app.listen(PORT, ()=>{
// 	console.log(`Server running on port ${server_port}`);
// })
Posted by: Guest on September-23-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language