mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
fix: remove unnecessary console log
This commit is contained in:
1 parent
72b2711367
commit
50bed23d37
8 files changed
+2
-14
No files matched your search
@@ -27,8 +27,6 @@ export function pushToSession(sessionId, event, ...args) {
|
||||
}
|
||||
|
||||
async function connectClient(socket) {
|
||||
console.log('Connected to the client.')
|
||||
|
||||
const user = socket.request.session?.passport?.user
|
||||
if (!user) {
|
||||
socket.send('User not found.')
|
||||
@@ -85,7 +83,6 @@ async function connectClient(socket) {
|
||||
listenToSession(session.id, socketCallback)
|
||||
|
||||
socket.on('disconnect', () => {
|
||||
console.log('Disconnected from the client.')
|
||||
stream.socket.write('exit\n')
|
||||
removeFromSession(session.id, socketCallback)
|
||||
stream.destroy()
|
||||
|
||||
Reference in new issue
Block a user