Example usage for org.springframework.web.socket WebSocketHandler afterConnectionEstablished

List of usage examples for org.springframework.web.socket WebSocketHandler afterConnectionEstablished

Introduction

In this page you can find the example usage for org.springframework.web.socket WebSocketHandler afterConnectionEstablished.

Prototype

void afterConnectionEstablished(WebSocketSession session) throws Exception;

Source Link

Document

Invoked after WebSocket negotiation has succeeded and the WebSocket connection is opened and ready for use.

Usage

From source file:org.springframework.web.socket.handler.PerConnectionWebSocketHandler.java

@Override
public void afterConnectionEstablished(WebSocketSession session) throws Exception {
    WebSocketHandler handler = this.provider.getHandler();
    this.handlers.put(session, handler);
    handler.afterConnectionEstablished(session);
}