DESKTOP-PC6TBNS\강환석씨

The API call result was not normally contained in the (info) object because node…

…js processed the function asynchronously. So we used the following grammar rules, async, await, and changed it to call api synchronously. Good operation
This diff is collapsed. Click to expand it.
......@@ -38,20 +38,19 @@
></div>
</div>
</div>
<<<<<<< HEAD
<script src="/socket.io/socket.io.js"></script>
<script>
var socket = io.connect('/');
socket.emit("connection");
socket.on("weatherInfo_minutely_send_to_cliend",(info)=>{ //서버에서 client에게 메세지 전송
var socket = io('http://localhost',{transports: ['websocket']});
socket.emit("connection",()=>{
console.log("connected");
});
socket.on("weatherInfo_minutely_send_to_client",(info)=>{ //서버에서 client에게 메세지 전송
console.log(info);
});
</script>
=======
>>>>>>> 0f5edf6316e2444f5fd2a050fed5e771e5141733
<!-- 첫번째 그래프 -->
<script type="text/javascript">
Highcharts.chart("container1", {
......