socket.io in JS

This commit is contained in:
Jörn-Michael Miehe 2018-11-29 13:15:24 +01:00
parent d464a9e29d
commit 4656aaa23c
3 changed files with 4 additions and 3 deletions

View file

@ -15,8 +15,8 @@
"devDependencies": { "devDependencies": {
"@babel/core": "^7.1.6", "@babel/core": "^7.1.6",
"@babel/preset-env": "^7.1.6", "@babel/preset-env": "^7.1.6",
"css-loader": "^1.0.1",
"coffee-loader": "^0.9.0", "coffee-loader": "^0.9.0",
"css-loader": "^1.0.1",
"postcss-loader": "^3.0.0", "postcss-loader": "^3.0.0",
"sass-loader": "^7.1.0", "sass-loader": "^7.1.0",
"style-loader": "^0.23.1", "style-loader": "^0.23.1",
@ -41,6 +41,7 @@
"express": "^4.16.4", "express": "^4.16.4",
"helmet": "*", "helmet": "*",
"mysql": "*", "mysql": "*",
"socket.io": "^2.1.1" "socket.io": "^2.2.0",
"socket.io-client": "^2.2.0"
} }
} }

View file

@ -5,6 +5,7 @@ window.$ = require('jquery')
$ -> $ ->
# libs requiring full DOM # libs requiring full DOM
require 'craftyjs/dist/crafty' require 'craftyjs/dist/crafty'
io = require 'socket.io-client'
# style sheet # style sheet
require './style/custom.scss' require './style/custom.scss'

View file

@ -2,7 +2,6 @@
<html> <html>
<head> <head>
<title>Crafty Things</title> <title>Crafty Things</title>
<script src="/socket.io/socket.io.js"></script>
<script src="game.bundle.js"></script> <script src="game.bundle.js"></script>
</head> </head>
<body></body> <body></body>