Created
August 7, 2014 08:38
-
-
Save SeyitOzanOzdil/d79881ede70ebb159740 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head lang="en"> | |
<meta charset="UTF-8"> | |
<title></title> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script> | |
<script src="socket.io.js"></script> | |
<script type="text/javascript"> | |
$(function(){ | |
var sock = new io.connect('http://ip and port { | |
query: $.param({token: 'db19948c2babbd6ee534e112718b6681'}) | |
}); | |
var socket = new io.connect('http://ip and port/socket') | |
sock.on('disconnect', function() { | |
sock.socket.reconnect(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment