Open anikethsaha opened 6 years ago
+1 on this
+1
Found that if you use this websocket client, you can create a ApolloClient with subscription
const WebSocket = require('websocket').client;
...
const wsLink = new WebSocketLink({
uri: WS_URI,
options: {
reconnect: true,
},
webSocketImpl: WebSocket
});
I am writing graphql subscription using apollo-client and link packages . the server working fine but the client not . My client
Now I am error
after some searching I added the ws from ws package also but it seems that ws package is having there own wierd problem like cannot find
fs
,net
etc. which are the default node packages. Now there is nothing mentioned about adding any websockets in the apollo docs then why this error is coming? help me here In the last I change the ws withisomorphic-ws
and now the coming is