Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Code styling

  • Loading branch information...
commit 994a385c385f8b80ad9872dfc406d1417a9a42c6 1 parent af7c8ef
Shahar Kedar authored
Showing with 18 additions and 18 deletions.
  1. +18 −18 articles/socket-io-auth/index.html
View
36 articles/socket-io-auth/index.html
@@ -1,22 +1,22 @@
<html>
-<head>
- <script src="http://localhost:3000/socket.io/socket.io.js"></script>
- <script>
- tick = io.connect('http://localhost:3000/');
- tick.on('data', function (data) {
- console.log(data);
- });
+ <head>
+ <script src="http://localhost:3000/socket.io/socket.io.js" type="text/javascript"></script>
+ <script type="text/javascript">
+ tick = io.connect('http://localhost:3000/');
+ tick.on('data', function (data) {
+ console.log(data);
+ });
- tick.on('error', function (reason){
- console.error('Unable to connect Socket.IO', reason);
- });
+ tick.on('error', function (reason){
+ console.error('Unable to connect Socket.IO', reason);
+ });
- tick.on('connect', function (){
- console.info('successfully established a working connection');
- });
- </script>
-</head>
-<body>
-Hello!
-</body>
+ tick.on('connect', function (){
+ console.info('successfully established a working and authorized connection');
+ });
+ </script>
+ </head>
+ <body>
+ Open the browser console to see tick-tocks!
+ </body>
</html>
Please sign in to comment.
Something went wrong with that request. Please try again.