1.0.3 • Published 4 years ago

graphql-ws-client v1.0.3

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

Graphql WebSocket Client

Simple replacement to query over WebSocket Connection form backend to backend.

Recommended if you need to send over 1000 queries per second. This method is much more efficient than standard Rest.


I have just implemented inital feature I need. I you need more just ask!

const gqlClient = require('./index')({url: process.env.CALCULATION_SERVICE_LINK || "ws://localhost:4000"});

gqlClient.query(`
    query {
        getCorrectedTheoreticalPower(serial: "E-781156",windSpeed:  12,temperature: -10) {
  	        theoreticalPowerW
        }
    }`)
    .then((x) => {
        console.log(x)
    })
1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago