如何更改graphql游乐场中的websocket url(订阅)

如何更改graphql游乐场中的websocket url(订阅),graphql,graphql-subscriptions,Graphql,Graphql Subscriptions,我想在graphql中更改graphql websocket的端点,有人知道怎么做吗 默认情况下,它会ping wss://localhost/graphql 我需要将其更改为推送url 谢谢:-)如果您运行的是GraphQL游乐场的独立实例,URL将作为道具直接传递给组件: <Playground endpoint="http://localhost/graphql" subscriptionEndpoint="wss://localhost/graphql" /> 编

我想在graphql中更改graphql websocket的端点,有人知道怎么做吗

默认情况下,它会ping

wss://localhost/graphql
我需要将其更改为推送url


谢谢:-)

如果您运行的是GraphQL游乐场的独立实例,URL将作为道具直接传递给组件:

<Playground
  endpoint="http://localhost/graphql"
  subscriptionEndpoint="wss://localhost/graphql"
/>
编辑:


似乎没有办法用特定的订阅URL配置桌面客户端,除非您将其与包含
.graphqlconfig
的本地repo一起使用。在这种情况下,您可以在配置文件中提供有关环境的附加信息,包括订阅url,如所述。

您使用的是
apollo server express
?您能提供更多关于如何实现服务器的信息吗?在graphql Playerd(桌面客户端)中