Showing
2 changed files
with
15 additions
and
0 deletions
This diff is collapsed. Click to expand it.
| ... | @@ -38,6 +38,21 @@ | ... | @@ -38,6 +38,21 @@ |
| 38 | ></div> | 38 | ></div> |
| 39 | </div> | 39 | </div> |
| 40 | </div> | 40 | </div> |
| 41 | +<<<<<<< HEAD | ||
| 42 | +======= | ||
| 43 | + | ||
| 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 | ||
| 41 | 56 | ||
| 42 | <!-- 첫번째 그래프 --> | 57 | <!-- 첫번째 그래프 --> |
| 43 | <script type="text/javascript"> | 58 | <script type="text/javascript"> | ... | ... |
-
Please register or login to post a comment