Class SocketModeApp

java.lang.Object
com.slack.api.bolt.socket_mode.SocketModeApp

public class SocketModeApp extends Object
  • Constructor Details

    • SocketModeApp

      public SocketModeApp(App app) throws IOException
      Throws:
      IOException
    • SocketModeApp

      public SocketModeApp(String appToken, App app) throws IOException
      Throws:
      IOException
    • SocketModeApp

      public SocketModeApp(String appToken, SocketModeClient.Backend backend, App app) throws IOException
      Throws:
      IOException
    • SocketModeApp

      public SocketModeApp(Supplier<SocketModeClient> clientFactory, App app)
    • SocketModeApp

      public SocketModeApp(SocketModeClient socketModeClient, App app)
      If you would like to synchronously detect the connection error as an exception when bootstrapping, use this constructor. The first line can throw an exception in the case where either the token or network settings are valid. SocketModeClient client = Slack.getInstance().socketMode(appToken); SocketModeApp socketModeApp = new SocketModeApp(client, app);
  • Method Details