Class SubscriptionMessageConnectionInit

  • All Implemented Interfaces:

    
    public final class SubscriptionMessageConnectionInit
    extends GraphQLSubscriptionMessage
                        

    Indicates that the client wants to establish a connection within the existing socket.

    Connection init process may fail with the following status codes

    • 4403: Forbidden - if server rejects the connection (e.g. due to auth)

    • 4408: Connection initialisation timeout - if connection-init is not received within specified connection timeout

    • 4429: Too many initialisation requests - if server receives more than one connection-init requests

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      String getType()
      final Object getPayload()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SubscriptionMessageConnectionInit

        SubscriptionMessageConnectionInit(Object payload)
        Parameters:
        payload - optional field to provide additional details about the connection