Skip to content

Commit

Permalink
fix example code
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Oct 14, 2023
1 parent 93c8cb3 commit 7a1796c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/server/wsgi/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/socket.io/4.7.2/socket.io.min.js"></script>
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
var socket = io.connect({transports: ['websocket']});
var socket = io.connect();

socket.on('connect', function() {
socket.emit('my_event', {data: 'I\'m connected!'});
Expand Down

0 comments on commit 7a1796c

Please sign in to comment.