DESKTOP-PC6TBNS\강환석씨

socket io add

...@@ -38,22 +38,16 @@ ...@@ -38,22 +38,16 @@
38 ></div> 38 ></div>
39 </div> 39 </div>
40 </div> 40 </div>
41 -<<<<<<< HEAD 41 +
42 -======= 42 +
43 - 43 +<script src="/socket.io/socket.io.js"></script>
44 - <script src="/socket.io/socket.io.js"></script> 44 +<script>
45 - <script> 45 + var socket = io.connect('/',{transports: ['websocket'],upgrade:false});
46 - var socket = io('http://localhost',{transports: ['websocket']}); 46 + socket.emit("connection","client in");
47 - socket.emit("connection",()=>{
48 - console.log("connected");
49 - });
50 socket.on("weatherInfo_minutely_send_to_client",(info)=>{ //서버에서 client에게 메세지 전송 47 socket.on("weatherInfo_minutely_send_to_client",(info)=>{ //서버에서 client에게 메세지 전송
51 console.log(info); 48 console.log(info);
52 }); 49 });
53 - </script> 50 +</script>
54 -
55 ->>>>>>> last_socket_hotfix
56 -
57 <!-- 첫번째 그래프 --> 51 <!-- 첫번째 그래프 -->
58 <script type="text/javascript"> 52 <script type="text/javascript">
59 Highcharts.chart("container1", { 53 Highcharts.chart("container1", {
......