File tree Expand file tree Collapse file tree 7 files changed +7
-7
lines changed
django_example/socketio_app/static Expand file tree Collapse file tree 7 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 3
3
< head >
4
4
< title > Flask-SocketIO Test</ title >
5
5
< script type ="text/javascript " src ="//code.jquery.com/jquery-2.1.4.min.js "> </ script >
6
- < script type ="text/javascript " src ="//cdnjs.cloudflare.com/ajax/libs/socket.io/1.3.5 /socket.io.min .js "> </ script >
6
+ < script type ="text/javascript " src ="//cdnjs.cloudflare.com/ajax/libs/socket.io/2.0.4 /socket.io.slim .js "> </ script >
7
7
< script type ="text/javascript " charset ="utf-8 ">
8
8
$ ( document ) . ready ( function ( ) {
9
9
namespace = '/test' ;
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ <h2 id="transport">(connecting)</h2>
11
11
12
12
< script src ="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.js "> </ script >
13
13
< script src ="//cdnjs.cloudflare.com/ajax/libs/smoothie/1.27.0/smoothie.js "> </ script >
14
- < script src ="//cdnjs.cloudflare.com/ajax/libs/socket.io/1.3.6 /socket.io.min .js "> </ script >
14
+ < script src ="//cdnjs.cloudflare.com/ajax/libs/socket.io/2.0.4 /socket.io.slim .js "> </ script >
15
15
< script >
16
16
// socket
17
17
var socket = io . connect ( 'http://' + document . domain + ':' + location . port ) ;
Original file line number Diff line number Diff line change 3
3
< head >
4
4
< title > Flask-SocketIO Test</ title >
5
5
< script type ="text/javascript " src ="//code.jquery.com/jquery-2.1.4.min.js "> </ script >
6
- < script type ="text/javascript " src ="//cdnjs.cloudflare.com/ajax/libs/socket.io/1.3.5 /socket.io.min .js "> </ script >
6
+ < script type ="text/javascript " src ="//cdnjs.cloudflare.com/ajax/libs/socket.io/2.0.4 /socket.io.slim .js "> </ script >
7
7
< script type ="text/javascript " charset ="utf-8 ">
8
8
$ ( document ) . ready ( function ( ) {
9
9
namespace = '/test' ;
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ <h2 id="transport">(connecting)</h2>
11
11
12
12
< script src ="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.js "> </ script >
13
13
< script src ="//cdnjs.cloudflare.com/ajax/libs/smoothie/1.27.0/smoothie.js "> </ script >
14
- < script src ="//cdnjs.cloudflare.com/ajax/libs/socket.io/1.3.6 /socket.io.min .js "> </ script >
14
+ < script src ="//cdnjs.cloudflare.com/ajax/libs/socket.io/2.0.4 /socket.io.slim .js "> </ script >
15
15
< script >
16
16
// socket
17
17
var socket = io . connect ( 'http://' + document . domain + ':' + location . port ) ;
Original file line number Diff line number Diff line change 3
3
< head >
4
4
< title > Django + SocketIO Test</ title >
5
5
< script type ="text/javascript " src ="//code.jquery.com/jquery-3.2.1.slim.min.js "> </ script >
6
- < script type ="text/javascript " src ="//cdnjs.cloudflare.com/ajax/libs/socket.io/2.0.1 /socket.io.slim.js "> </ script >
6
+ < script type ="text/javascript " src ="//cdnjs.cloudflare.com/ajax/libs/socket.io/2.0.4 /socket.io.slim.js "> </ script >
7
7
< script type ="text/javascript " charset ="utf-8 ">
8
8
$ ( document ) . ready ( function ( ) {
9
9
namespace = '/test' ;
Original file line number Diff line number Diff line change 3
3
< head >
4
4
< title > Flask-SocketIO Test</ title >
5
5
< script type ="text/javascript " src ="//code.jquery.com/jquery-2.1.4.min.js "> </ script >
6
- < script type ="text/javascript " src ="//cdnjs.cloudflare.com/ajax/libs/socket.io/1.3.5 /socket.io.min .js "> </ script >
6
+ < script type ="text/javascript " src ="//cdnjs.cloudflare.com/ajax/libs/socket.io/2.0.4 /socket.io.slim .js "> </ script >
7
7
< script type ="text/javascript " charset ="utf-8 ">
8
8
$ ( document ) . ready ( function ( ) {
9
9
namespace = '/test' ;
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ <h2 id="transport">(connecting)</h2>
11
11
12
12
< script src ="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.js "> </ script >
13
13
< script src ="//cdnjs.cloudflare.com/ajax/libs/smoothie/1.27.0/smoothie.js "> </ script >
14
- < script src ="//cdnjs.cloudflare.com/ajax/libs/socket.io/1.3.6 /socket.io.min .js "> </ script >
14
+ < script src ="//cdnjs.cloudflare.com/ajax/libs/socket.io/2.0.4 /socket.io.slim .js "> </ script >
15
15
< script >
16
16
// socket
17
17
var socket = io . connect ( 'http://' + document . domain + ':' + location . port ) ;
You can’t perform that action at this time.
0 commit comments