Toggle navigation
Toggle navigation
This project
Loading...
Sign in
최시원
/
Singer-Composer
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
Mukho
2021-11-26 16:22:40 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8b0b097e816dc5798ff3b97ad4b104292e9e4ea0
8b0b097e
1 parent
6bae359b
fix before pull
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
app.js
js/chat.js
readme.md
app.js
View file @
8b0b097
...
...
@@ -24,7 +24,7 @@ var LocalStrategy = require('passport-local').Strategy
var
session
=
require
(
'express-session'
)
var
flash
=
require
(
'connect-flash'
)
var
path
=
require
(
'path'
)
const
PORT
=
300
3
const
PORT
=
300
0
var
jsdom
=
require
(
'jsdom'
);
const
{
JSDOM
}
=
jsdom
;
...
...
@@ -74,6 +74,7 @@ var session = session({
app
.
use
(
session
);
var
sharedsession
=
require
(
"express-socket.io-session"
);
const
{
createSocket
}
=
require
(
'dgram'
)
io
.
use
(
sharedsession
(
session
,
{
autoSave
:
true
}));
app
.
use
(
passport
.
initialize
())
...
...
js/chat.js
View file @
8b0b097
...
...
@@ -16,7 +16,8 @@ socket.on('update', function(data) {
var
node
;
if
(
data
.
name
!=
"SERVER"
){
node
=
document
.
createTextNode
(
`
${
data
.
name
}
:
${
data
.
message
}
`
)
}
else
{
}
else
{
node
=
document
.
createTextNode
(
`
${
data
.
message
}
`
)
}
var
className
=
''
...
...
readme.md
View file @
8b0b097
...
...
@@ -63,6 +63,7 @@ create table board(
---
### 최종 수정: 2021-11-25 20:24<br>
### 수정 내용:
0.
채팅 중 서버 재시작시 기존 참여자들 리셋시키기 이슈
1.
채팅 구현
2.
시간 실시간 반영
3.
프로필 사진 추가
...
...
Please
register
or
login
to post a comment