Releases: enisdenjo/graphql-ws
Releases · enisdenjo/graphql-ws
v4.6.0
v4.5.2
v4.5.1
v4.5.0
v4.4.4
4.4.4 (2021-04-28)
Bug Fixes
- client:
complete
should not be called after subscriptionerror
(1fba419) - client: Subscription can be disposed only once (abd9c28), closes #170
Note about complete
not being called after subscription error
Promises and Async Iterators can reject/throw/error
or resolve/return/complete
only once, subsequent calls to either will simply be ignored.
Furthermore, as per the Observer pattern, from RxJS docs:
In an Observable Execution, zero to infinite Next notifications may be delivered. If either an Error or Complete notification is delivered, then nothing else can be delivered afterwards.
v4.4.3
v4.4.2
v4.4.1
v4.4.0
4.4.0 (2021-04-11)
Features
Server usage with uWebSockets.js
import uWS from 'uWebSockets.js'; // yarn add uWebSockets.js@uNetworking/uWebSockets.js#<tag>
import { makeBehavior } from 'graphql-ws/lib/use/uWebSockets';
import { schema } from './my-graphql-schema';
uWS
.App()
.ws('/graphql/is-performant', makeBehavior({ schema }))
.listen(4000, (listenSocket) => {
if (listenSocket) {
console.log('Listening to port 4000');
}
});