1.0.1: Guard check for misconfiguration or misuse
Because cryptic error NoMethodError: undefined method 'stream_from' for nil:NilClass isn't helpful for you, folks.
Added
-
Guard check for presence of ActionCable channel instance in the GraphQL execution context.
This allows to detect wrong configuration (user forgot to pass channel into context) or wrong usage (subscription query was sent via HTTP request, not via WebSocket channel) of the library and provides clear error message to gem users.