Toggle navigation
Toggle navigation
This project
Loading...
Sign in
조민지
/
2018_2_project
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
DESKTOP-PC6TBNS\강환석씨
2018-12-11 16:17:50 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6c9b906adb6c1f9b64634d37cdcd76acbe13da98
6c9b906a
1 parent
5ba60943
socket io add
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
14 deletions
views/index.ejs
views/index.ejs
View file @
6c9b906
...
...
@@ -38,22 +38,16 @@
></div>
</div>
</div>
<<<<<<
< HEAD
=======
<
script
src=
"/socket.io/socket.io.js"
></script>
<script>
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>
>>>>>>> last_socket_hotfix
<script
src=
"/socket.io/socket.io.js"
></script>
<script>
var
socket
=
io
.
connect
(
'/'
,{
transports
:
[
'websocket'
],
upgrade
:
false
});
socket
.
emit
(
"connection"
,
"client in"
);
socket
.
on
(
"weatherInfo_minutely_send_to_client"
,(
info
)
=>
{
//서버에서 client에게 메세지 전송
console
.
log
(
info
);
});
</script>
<!-- 첫번째 그래프 -->
<script
type=
"text/javascript"
>
Highcharts
.
chart
(
"container1"
,
{
...
...
Please
register
or
login
to post a comment