Skip to content

Instantly share code, notes, and snippets.

@matthewoestreich
Created March 21, 2020 21:30
Show Gist options
  • Save matthewoestreich/c40838bf19f06b7ef7f914c586294cf2 to your computer and use it in GitHub Desktop.
Save matthewoestreich/c40838bf19f06b7ef7f914c586294cf2 to your computer and use it in GitHub Desktop.
var express = require('express');
var bodyParser = require('body-parser')
var cors = require('cors')
var main = express()
main.use(cors())
var server = main.listen(8000);
var io = require('socket.io').listen(server);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment