Skip to content

Commit

Permalink
Update to latest API changes
Browse files Browse the repository at this point in the history
Add `region` to `Strike`.
Update default url generation to use random wss server.

BREAKING CHANGE:
Only node >=v10 supported

BREAKING CHANGE:
Removed `Client.setIncludeDetectors` as it has become a noop, detectors are always received
  • Loading branch information
SimonSchick committed Jul 31, 2020
1 parent dce363a commit dece566
Show file tree
Hide file tree
Showing 4 changed files with 1,025 additions and 791 deletions.
3 changes: 0 additions & 3 deletions example.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import * as WebSocket from 'ws';
import { Client } from './src/Client';
import { locations } from './src/locations';



interface GeoPoint {
latitude: number;
longitude: number;
Expand Down Expand Up @@ -41,7 +39,6 @@ const c = new Client({
c.connect();
c.on('error', console.error);
c.on('connect', () => {
c.setIncludeDetectors(false);
c.setArea(locations.global);
})
c.on('data', strike => {
Expand Down
Loading

0 comments on commit dece566

Please sign in to comment.