Guest User

Untitled

a guest
Dec 11th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. @SpringBootApplication
  2. @EnableWebSocket
  3. public class One2OneCallApp implements WebSocketConfigurer {
  4.  
  5. @Bean
  6. public CallHandler callHandler() {
  7. return new CallHandler();
  8. }
  9.  
  10. @Bean
  11. public UserRegistry registry() {
  12. return new UserRegistry();
  13. }
  14.  
  15. @Bean
  16. public KurentoClient kurentoClient() {
  17. return KurentoClient.create();
  18. }
  19.  
  20. @Override
  21. public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {
  22. registry.addHandler(callHandler(), "/call");
  23. }
  24.  
  25. public static void main(String[] args) throws Exception {
  26. new SpringApplication(One2OneCallApp.class).run(args);
  27. }
  28. }
Add Comment
Please, Sign In to add comment