Skip to content

Commit dbf58d6

Browse files
authored
Update Server.py
1 parent 263e030 commit dbf58d6

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

Server.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,19 +76,18 @@ def on_create_room(data):
7676
}
7777
print(session)
7878

79+
# Spring 로직 추가 => 방 생성
80+
create_room_request(data, request.sid)
81+
print("방 생성됨!!!!!!!!!!!!!!!!!")
82+
83+
emit("join-request")
84+
7985
# elk
8086
room_id = data["room_id"]
8187
date = datetime.datetime.now()
8288
now = date.strftime('%m/%d/%y %H:%M:%S')
8389
doc_create = {"des": "create room", "room_id": room_id, "@timestamp": utc_time()}
8490
es.index(index=index_name, doc_type="log", body=doc_create)
85-
86-
# Spring 로직 추가 => 방 생성
87-
create_room_request(data, request.sid)
88-
print("방 생성됨!!!!!!!!!!!!!!!!!")
89-
90-
emit("join-request")
91-
9291

9392
@socketio.on("join-room")
9493
def on_join_room(data):

0 commit comments

Comments
 (0)