add socket connection
This commit is contained in:
parent
1de440cedb
commit
9787a9d468
9 changed files with 7302 additions and 9 deletions
|
@ -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
7252
public/js/lib/socket.io.js
Normal file
File diff suppressed because it is too large
Load diff
|
@ -2,6 +2,8 @@
|
|||
|
||||
window.addEventListener('load', init);
|
||||
|
||||
function init() {
|
||||
var socket;
|
||||
|
||||
function init() {
|
||||
socket = io.connect('http://localhost:8080');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue