index.html @@ -15,7 +15,7 @@ <script> $(function() { // 创建socket对象 var socket = new WebSocket('ws://127.0.0.1:9501'); var socket = new WebSocket('ws://127.0.0.1:9503'); // 打开Socket socket.onopen = function(event) {