Skip to content

Commit

Permalink
feat: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
alichherawalla committed Jun 25, 2024
1 parent e188ed9 commit 3f7d4fe
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,10 @@ export const init = async () => {
if (!isTestEnv()) {
const httpServer = createServer(app);
const wsServer = new WebSocketServer({
// This is the `httpServer` we created in a previous step.
server: httpServer,
// Pass a different path here if app.use
// serves expressMiddleware at a different path
path: '/graphql'
});

// Hand in the schema we just created and have the
// WebSocketServer start listening.
const serverCleanup = useServer({ schema }, wsServer);

const server = new ApolloServer({
Expand Down

0 comments on commit 3f7d4fe

Please sign in to comment.