Toggle navigation
Toggle navigation
This project
Loading...
Sign in
오원석
/
Probability Death
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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
13 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"
);
});
<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>
>>>>>>> last_socket_hotfix
</script>
<!-- 첫번째 그래프 -->
<script
type=
"text/javascript"
>
Highcharts
.
chart
(
"container1"
,
{
...
...
Please
register
or
login
to post a comment