add socket connection

This commit is contained in:
Asraelite 2016-03-21 14:19:22 +00:00
parent 1de440cedb
commit 9787a9d468
9 changed files with 7302 additions and 9 deletions

View file

@ -4,9 +4,13 @@
<meta charset="UTF-8">
<link rel="icon" type="image/png" href="img/favicon.png">
<link rel="stylesheet" type="text/css" href="css/styles.css">
<title>
Starbugs
</title>
<script src="js/lib/socket.io.js"></script>
<script src="starbugs.min.js"></script>
</head>
<body>

7252
public/js/lib/socket.io.js Normal file

File diff suppressed because it is too large Load diff

View file

@ -2,6 +2,8 @@
window.addEventListener('load', init);
function init() {
var socket;
function init() {
socket = io.connect('http://localhost:8080');
}