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