Skip to content

Commit

Permalink
Merge pull request #3 from lotteon2/O2F-974-Auction-/init-chat
Browse files Browse the repository at this point in the history
O2F-982 [INIT] 초기 셋팅
  • Loading branch information
wakkpu authored Jan 3, 2024
2 parents 4c5d46c + a85761a commit 504f9c3
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package com.dailyon.auctionservice.controller;

import org.springframework.messaging.rsocket.RSocketRequester;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
public class ChattingController {
private final List<RSocketRequester> CLIENTS = new ArrayList<>();
}
13 changes: 13 additions & 0 deletions src/main/java/com/dailyon/auctionservice/dto/Message.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.dailyon.auctionservice.dto;

import lombok.*;

@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class Message {
private String userName;
private String message;
}
10 changes: 9 additions & 1 deletion src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ spring:
port: 5672
username: guest
password: guest
cloud:
discovery:
enabled: false # 잠시 꺼둠
rsocket:
server:
port: 6565
transport: websocket
mapping-path: /rs

eureka:
client:
Expand All @@ -20,4 +28,4 @@ eureka:
instance-id: ${spring.application.name}:${server.port}

endpoint:
product-service: localhost:8085
product-service: localhost:8085

0 comments on commit 504f9c3

Please sign in to comment.