File tree 3 files changed +0
-90
lines changed
src/main/java/cmf/commitField
domain/noti/noti/controller 3 files changed +0
-90
lines changed Original file line number Diff line number Diff line change 1
1
package cmf .commitField .domain .noti .noti .controller ;
2
2
3
3
import cmf .commitField .domain .noti .noti .dto .NotiDto ;
4
- import cmf .commitField .domain .noti .noti .event .NotiEvent ;
5
4
import cmf .commitField .domain .noti .noti .service .NotiService ;
6
5
import cmf .commitField .domain .user .entity .User ;
7
6
import cmf .commitField .domain .user .repository .UserRepository ;
8
7
import cmf .commitField .global .error .ErrorCode ;
9
8
import cmf .commitField .global .exception .CustomException ;
10
9
import cmf .commitField .global .globalDto .GlobalResponse ;
11
- import cmf .commitField .global .websocket .NotiWebSocketHandler ;
12
10
import lombok .RequiredArgsConstructor ;
13
11
import lombok .extern .slf4j .Slf4j ;
14
12
import org .springframework .context .ApplicationEventPublisher ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 12
12
public class WebSocketConfig implements WebSocketConfigurer {
13
13
14
14
private final ChatWebSocketHandler chatWebSocketHandler ;
15
- private final NotiWebSocketHandler notiWebSocketHandler ;
16
15
17
16
@ Override
18
17
public void registerWebSocketHandlers (WebSocketHandlerRegistry registry ) {
19
18
// ์ฑํ
์น์์ผ ํธ๋ค๋ฌ ๋ฑ๋ก
20
19
registry .addHandler (chatWebSocketHandler , "/chat-rooms" )
21
20
.setAllowedOrigins ("*" ); // CORS ์ค์ , ์ค์ ํ๊ฒฝ์์๋ ๋ณด์์ ์ํด ์ ํ์ ์ผ๋ก ์ค์ ํด์ผ ํจ
22
-
23
- // ์๋ฆผ ์น์์ผ ํธ๋ค๋ฌ ๋ฑ๋ก
24
- // registry.addHandler(notiWebSocketHandler, "/notifications")
25
- // .setAllowedOrigins("*");
26
21
}
27
22
}
You canโt perform that action at this time.
0 commit comments