All Downloads are FREE. Search and download functionalities are using the official Maven repository.

graphql.kickstart.servlet.subscriptions.WebSocketSubscriptionSession Maven / Gradle / Ivy

There is a newer version: 16.0.0
Show newest version
package graphql.kickstart.servlet.subscriptions;

import graphql.kickstart.execution.subscriptions.DefaultSubscriptionSession;
import graphql.kickstart.execution.subscriptions.GraphQLSubscriptionMapper;
import java.util.Map;
import jakarta.websocket.Session;

public class WebSocketSubscriptionSession extends DefaultSubscriptionSession {

  private final Session session;

  public WebSocketSubscriptionSession(GraphQLSubscriptionMapper mapper, Session session) {
    super(mapper);
    this.session = session;
  }

  @Override
  public boolean isOpen() {
    return session.isOpen();
  }

  @Override
  public Map getUserProperties() {
    return session.getUserProperties();
  }

  @Override
  public String getId() {
    return session.getId();
  }

  @Override
  public Session unwrap() {
    return session;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy