일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- DT_TOOLCHAIN_DIR cannot be used
- Stomp socket connection event
- Android apple login
- no such module '__ObjC'
- 소개팅앱 만들기 stomp
- supabase edge function deploy error supabaseurl is required
- invite user for supabase project
- supabase storage public url not working
- 로컬 서버 접속
- 소개팅앱 만들기
- Firebase authentication apple login
- Spring LocalDateTime response array
- Supabase edge function
- 주 4일 근무제 log
- 주 4일 근무제 경험담
- 주 4일 근무제
- Android apple login identifier
- Stomp user connection event
- Spring boot swagger blank screen
- Firebase authentication android apple login
- supabase storage feature not enabled for this tenant
- supabase edge function deploy error
- Firebase authentication android apple login setting
- Firebase authentication apple login 최신
- stable-diffusion-webui local 접속
- stable-diffusion-webui local 네트워크에서 접속
- 소개팅앱 만들기 flutter
- Supabase edge function insert data
- Spring google SMTP settings
- Android apple login 인증서 설정
Archives
- Today
- Total
꿀맛코딩
Stomp user 소켓 연결 및 해제 감지 본문
@Configuration
@EnableWebSocketMessageBroker
@PropertySource("classpath:application.properties")
class WebSocketConfig: WebSocketMessageBrokerConfigurer {
override fun configureWebSocketTransport(registration: WebSocketTransportRegistration) {
registration.addDecoratorFactory { handler ->
object : WebSocketHandlerDecorator(handler) {
@Throws(Exception::class)
override fun afterConnectionEstablished(session: WebSocketSession) {
// We will store current user's session into WebsocketSessionHolder after connection is established
val username = session.id
print("afterConnectionEstablished session ${username}")
super.afterConnectionEstablished(session)
}
override fun afterConnectionClosed(session: WebSocketSession, closeStatus: CloseStatus) {
super.afterConnectionClosed(session, closeStatus)
val username = session.id
print("afterConnectionClosed session ${username}")
}
}
}
}
}
반응형
'공부방 > Server' 카테고리의 다른 글
How to run docker in linux (0) | 2023.03.06 |
---|---|
How to install docker in aws linux free tier (AWS 리눅스 프리티어에 도커 설치 방법) (0) | 2023.03.06 |
How to assignment IPv6 in AWS ec2 (AWS ec2 IPv6 할당 방법) (0) | 2021.07.30 |
How to change linux java version (0) | 2020.07.25 |
Sequelize Query 정리 (0) | 2019.09.18 |
Comments