Заготовка под отправку счетчиков

This commit is contained in:
serega6531
2020-03-17 01:21:40 +03:00
parent 658e3255eb
commit b3cc0de450
7 changed files with 70 additions and 11 deletions

View File

@@ -5,15 +5,15 @@ import org.springframework.stereotype.Component;
import org.springframework.web.socket.CloseStatus;
import org.springframework.web.socket.WebSocketSession;
import org.springframework.web.socket.handler.TextWebSocketHandler;
import ru.serega6531.packmate.service.StreamSubscriptionService;
import ru.serega6531.packmate.service.SubscriptionService;
@Component
public class WebSocketHandler extends TextWebSocketHandler {
private final StreamSubscriptionService subscriptionService;
private final SubscriptionService subscriptionService;
@Autowired
public WebSocketHandler(StreamSubscriptionService subscriptionService) {
public WebSocketHandler(SubscriptionService subscriptionService) {
this.subscriptionService = subscriptionService;
}