Skip to content

Commit

Permalink
Deleted websocket
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnaNarra committed Nov 20, 2024
1 parent 199b781 commit 9d417a6
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions qlkube/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,6 @@ async function main() {
plugins: [
ApolloServerPluginDrainHttpServer({ httpServer: httpServer }),
ApolloServerPluginLandingPageGraphQLPlayground(),
{
async serverWillStart() {
return {
async drainServer() {
await serverCleanup.dispose();
},
};
},
},
],
formatError: error => {
try {
Expand Down Expand Up @@ -169,12 +160,6 @@ async function main() {
})
);

const wsServer = new WebSocketServer({
server: httpServer,
path: '/subscription',
});
const serverCleanup = useServer({ schema }, wsServer);

const PORT = process.env.CROWNLABS_QLKUBE_PORT || 8080;

httpServer.listen({ port: PORT }, () => {
Expand Down

0 comments on commit 9d417a6

Please sign in to comment.