Skip to content

Subscription not working with graphql-ws #1041

@klingen-m

Description

@klingen-m

https://github.com/spring-projects/spring-graphql/blob/66cece6a2c8c378b761d6d03a8b50f4004b06679/spring-graphql/src/main/java/org/springframework/graphql/server/webflux/GraphQlWebSocketHandler.java#L130C3-L136C4

if ("graphql-ws".equalsIgnoreCase(handshakeInfo.getSubProtocol())) {
	if (logger.isDebugEnabled()) {
		logger.debug("apollographql/subscriptions-transport-ws is not supported, nor maintained. "
						+ "Please, use https://github.com/enisdenjo/graphql-ws.");
	}
	return session.close(GraphQlStatus.INVALID_MESSAGE_STATUS);
}

Narrowed it down to above lines..why are graphql-ws connections closed?
Shouldn't it only close on former "subscriptions-transport-ws"?

I'm using Version:1.3.2

Maybe @amondnet or @rstoyanchev can help

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions