diff --git a/src/main/java/com/dailyon/auctionservice/controller/ChattingController.java b/src/main/java/com/dailyon/auctionservice/controller/ChattingController.java new file mode 100644 index 0000000..7f76c86 --- /dev/null +++ b/src/main/java/com/dailyon/auctionservice/controller/ChattingController.java @@ -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 CLIENTS = new ArrayList<>(); +} diff --git a/src/main/java/com/dailyon/auctionservice/dto/Message.java b/src/main/java/com/dailyon/auctionservice/dto/Message.java new file mode 100644 index 0000000..dded829 --- /dev/null +++ b/src/main/java/com/dailyon/auctionservice/dto/Message.java @@ -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; +} diff --git a/src/main/resources/application-local.yml b/src/main/resources/application-local.yml index 5a2bbdf..1892a7f 100644 --- a/src/main/resources/application-local.yml +++ b/src/main/resources/application-local.yml @@ -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: @@ -20,4 +28,4 @@ eureka: instance-id: ${spring.application.name}:${server.port} endpoint: - product-service: localhost:8085 \ No newline at end of file + product-service: localhost:8085