Browse Source
updated socketio js client to v2.0.4 in all examples
pull/146/head
Miguel Grinberg
7 years ago
No known key found for this signature in database
GPG Key ID: 36848B262DF5F06C
7 changed files with
7 additions and
7 deletions
-
examples/aiohttp/app.html
-
examples/aiohttp/latency.html
-
examples/sanic/app.html
-
examples/sanic/latency.html
-
examples/wsgi/django_example/socketio_app/static/index.html
-
examples/wsgi/templates/index.html
-
examples/wsgi/templates/latency.html
|
|
@ -3,7 +3,7 @@ |
|
|
|
<head> |
|
|
|
<title>Flask-SocketIO Test</title> |
|
|
|
<script type="text/javascript" src="//code.jquery.com/jquery-2.1.4.min.js"></script> |
|
|
|
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/socket.io/1.3.5/socket.io.min.js"></script> |
|
|
|
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/socket.io/2.0.4/socket.io.slim.js"></script> |
|
|
|
<script type="text/javascript" charset="utf-8"> |
|
|
|
$(document).ready(function(){ |
|
|
|
namespace = '/test'; |
|
|
|
|
|
@ -11,7 +11,7 @@ |
|
|
|
|
|
|
|
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.js"></script> |
|
|
|
<script src="//cdnjs.cloudflare.com/ajax/libs/smoothie/1.27.0/smoothie.js"></script> |
|
|
|
<script src="//cdnjs.cloudflare.com/ajax/libs/socket.io/1.3.6/socket.io.min.js"></script> |
|
|
|
<script src="//cdnjs.cloudflare.com/ajax/libs/socket.io/2.0.4/socket.io.slim.js"></script> |
|
|
|
<script> |
|
|
|
// socket |
|
|
|
var socket = io.connect('http://' + document.domain + ':' + location.port); |
|
|
|
|
|
@ -3,7 +3,7 @@ |
|
|
|
<head> |
|
|
|
<title>Flask-SocketIO Test</title> |
|
|
|
<script type="text/javascript" src="//code.jquery.com/jquery-2.1.4.min.js"></script> |
|
|
|
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/socket.io/1.3.5/socket.io.min.js"></script> |
|
|
|
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/socket.io/2.0.4/socket.io.slim.js"></script> |
|
|
|
<script type="text/javascript" charset="utf-8"> |
|
|
|
$(document).ready(function(){ |
|
|
|
namespace = '/test'; |
|
|
|
|
|
@ -11,7 +11,7 @@ |
|
|
|
|
|
|
|
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.js"></script> |
|
|
|
<script src="//cdnjs.cloudflare.com/ajax/libs/smoothie/1.27.0/smoothie.js"></script> |
|
|
|
<script src="//cdnjs.cloudflare.com/ajax/libs/socket.io/1.3.6/socket.io.min.js"></script> |
|
|
|
<script src="//cdnjs.cloudflare.com/ajax/libs/socket.io/2.0.4/socket.io.slim.js"></script> |
|
|
|
<script> |
|
|
|
// socket |
|
|
|
var socket = io.connect('http://' + document.domain + ':' + location.port); |
|
|
|
|
|
@ -3,7 +3,7 @@ |
|
|
|
<head> |
|
|
|
<title>Django + SocketIO Test</title> |
|
|
|
<script type="text/javascript" src="//code.jquery.com/jquery-3.2.1.slim.min.js"></script> |
|
|
|
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/socket.io/2.0.1/socket.io.slim.js"></script> |
|
|
|
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/socket.io/2.0.4/socket.io.slim.js"></script> |
|
|
|
<script type="text/javascript" charset="utf-8"> |
|
|
|
$(document).ready(function(){ |
|
|
|
namespace = '/test'; |
|
|
|
|
|
@ -3,7 +3,7 @@ |
|
|
|
<head> |
|
|
|
<title>Flask-SocketIO Test</title> |
|
|
|
<script type="text/javascript" src="//code.jquery.com/jquery-2.1.4.min.js"></script> |
|
|
|
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/socket.io/1.3.5/socket.io.min.js"></script> |
|
|
|
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/socket.io/2.0.4/socket.io.slim.js"></script> |
|
|
|
<script type="text/javascript" charset="utf-8"> |
|
|
|
$(document).ready(function(){ |
|
|
|
namespace = '/test'; |
|
|
|
|
|
@ -11,7 +11,7 @@ |
|
|
|
|
|
|
|
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.js"></script> |
|
|
|
<script src="//cdnjs.cloudflare.com/ajax/libs/smoothie/1.27.0/smoothie.js"></script> |
|
|
|
<script src="//cdnjs.cloudflare.com/ajax/libs/socket.io/1.3.6/socket.io.min.js"></script> |
|
|
|
<script src="//cdnjs.cloudflare.com/ajax/libs/socket.io/2.0.4/socket.io.slim.js"></script> |
|
|
|
<script> |
|
|
|
// socket |
|
|
|
var socket = io.connect('http://' + document.domain + ':' + location.port); |
|
|
|