Example usage for org.springframework.web.socket.client WebSocketConnectionManager setSubProtocols

List of usage examples for org.springframework.web.socket.client WebSocketConnectionManager setSubProtocols

Introduction

In this page you can find the example usage for org.springframework.web.socket.client WebSocketConnectionManager setSubProtocols.

Prototype

public void setSubProtocols(List<String> protocols) 

Source Link

Document

Set the sub-protocols to use.

Usage

From source file:cz.cvut.fel.webrtc.GroupCallApp.java

@Bean
public WebSocketConnectionManager asteriskConnection() throws URISyntaxException {
    @SuppressWarnings("Convert2Diamond")
    ArrayList<String> protocols = new ArrayList<>();
    protocols.add("sip");
    WebSocketConnectionManager manager = new WebSocketConnectionManager(new StandardWebSocketClient(),
            sipHandler(), xivo_ws);//from w ww  .  j a v  a2 s  .  co  m
    manager.setSubProtocols(protocols);
    manager.setAutoStartup(true);
    return manager;
}