Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Cannot set property 'readyState' of undefined #714

Closed
AruXc opened this issue Dec 7, 2019 · 3 comments
Closed

Cannot set property 'readyState' of undefined #714

AruXc opened this issue Dec 7, 2019 · 3 comments

Comments

@AruXc
Copy link

AruXc commented Dec 7, 2019

subscriptions-transport-ws dependency of ws, but this is already missing 2 major version.

this version make my server crash

issue

subscriptions-transport-ws can update to 7.2?

  websocket.readyState = WebSocket.CLOSING;
                       ^

TypeError: Cannot set property 'readyState' of undefined
    at Socket.socketOnClose (/Users/aru/Desktop/WanFang/onecare_server/node_modules/ws/lib/websocket.js:757:24)
    at Socket.emit (events.js:194:15)
    at TCP._handle.close (net.js:597:12)
@Popeye4242
Copy link
Contributor

This is still occuring, still no update?

@Suyashtnt
Copy link

I am also getting this issue,
Code:

//GQL
GQLServer.applyMiddleware({ app });
const server = createServer(app);
GQLServer.installSubscriptionHandlers(server);

server.listen(port, () => {
	new SubscriptionServer(
		{
			execute,
			subscribe,
			schema: buildSchema(typeDefs),
		},
		{
			server: server,
			path: '/graphql',
		},
	);
});

@mabc224
Copy link

mabc224 commented Apr 14, 2021

+1

@glasser glasser closed this as completed Mar 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants