Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Improvements for Authorization #53

Merged
merged 40 commits into from
Feb 5, 2017
Merged
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
662bf29
Add to changelog
Nov 8, 2016
7a19511
0.3.1
Nov 8, 2016
cd8cf46
feat(ws): replace websocket with ws package which supports UPGRADE an…
Urigo Dec 19, 2016
a248587
feat(events): added support for onUnsubscribe, onConnect, onDisconnect
Urigo Dec 19, 2016
8837e13
feat(ws): added connection params
Urigo Dec 19, 2016
1e87aaf
feat(ws): added support for browser client
Urigo Dec 20, 2016
aca6b20
feat(ws): added support for full external config for the websocket
Urigo Dec 20, 2016
40d5ec5
feat(ws): add support for connectionParams and connectionCallback and…
Urigo Dec 20, 2016
6a60bf0
feat(ws): fixed failing tests and remove console.log
Urigo Dec 20, 2016
3c5a933
feat(ws): some fixed and added unit tests for client side
Urigo Dec 20, 2016
153f6a6
feat(ws): added server side tests
Urigo Dec 20, 2016
8e7082b
docs(README): updated README
Urigo Dec 20, 2016
2ab5711
feat(ws): replace websocket with ws package which supports UPGRADE an…
Urigo Dec 19, 2016
9eeaf82
feat(events): added support for onUnsubscribe, onConnect, onDisconnect
Urigo Dec 19, 2016
b603475
feat(ws): added connection params
Urigo Dec 19, 2016
d3911a7
feat(ws): added support for browser client
Urigo Dec 20, 2016
66e7b0a
feat(ws): added support for full external config for the websocket
Urigo Dec 20, 2016
b268be0
feat(ws): add support for connectionParams and connectionCallback and…
Urigo Dec 20, 2016
0bda794
feat(ws): fixed failing tests and remove console.log
Urigo Dec 20, 2016
bd706c7
feat(ws): some fixed and added unit tests for client side
Urigo Dec 20, 2016
f50e074
feat(ws): added server side tests
Urigo Dec 20, 2016
dcfd6b9
docs(README): updated README
Urigo Dec 20, 2016
248c662
docs(README): updated README
Urigo Dec 20, 2016
f15f803
Merge remote-tracking branch 'origin/feature/ws' into feature/ws
Urigo Dec 20, 2016
e1681cb
feat(ws): added more tests and some fixed
Urigo Dec 21, 2016
7c8b769
feat(ws): test fixes
Urigo Dec 21, 2016
3bf41df
feat(ws): fixes after code review
Urigo Dec 26, 2016
b700388
feat(ws): added client side events for connect, disconnect, reconnect
Urigo Dec 26, 2016
a90e5f4
feat(ws): fixed naming, exports and environment separation
Urigo Dec 27, 2016
b79da71
feat(ws): fixed a bug with multiple connections - created a unique co…
Urigo Dec 27, 2016
58203c4
Merge branch 'master' into feature/ws
Urigo Jan 10, 2017
9cddcc2
feat(ws): fixes after merge
Urigo Jan 10, 2017
66dbcb4
feat(ws): fixed after code review
Urigo Jan 11, 2017
d15e9ad
feat(ws): fixed typo
Urigo Jan 11, 2017
989870a
feat(ws): modify usage of websocket implementation, so browser won't …
Urigo Jan 30, 2017
0fe5c5e
feat(ws): remove connection status (now need to use the native/altern…
Urigo Jan 30, 2017
330e10c
feat(ws): fixed tests
Urigo Jan 31, 2017
e762028
Merge branch 'master' into feature/ws
Urigo Feb 3, 2017
3c72ddf
feat(ws): rebase and fixes
Urigo Feb 3, 2017
eaf872d
feat(ws): updated CHANGELOG
Urigo Feb 3, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat(ws): fixed failing tests and remove console.log
  • Loading branch information
Urigo committed Dec 20, 2016
commit 6a60bf0842a4423a33ffe07adc3891acdf12ef13
2 changes: 0 additions & 2 deletions src/server.ts
Original file line number Diff line number Diff line change
@@ -192,8 +192,6 @@ class Server {
throw new Error(error);
}

console.log(params.context);

// create a callback
// error could be a runtime exception or an object with errors
// result is a GraphQL ExecutionResult, which has an optional errors property
8 changes: 4 additions & 4 deletions src/test/tests.ts
Original file line number Diff line number Diff line change
@@ -153,15 +153,15 @@ function notFoundRequestListener(request: IncomingMessage, response: ServerRespo

const httpServer = createServer(notFoundRequestListener);
httpServer.listen(TEST_PORT);
new SubscriptionServer(options, httpServer);
new SubscriptionServer(options, { server: httpServer});

const httpServerWithKA = createServer(notFoundRequestListener);
httpServerWithKA.listen(KEEP_ALIVE_TEST_PORT);
new SubscriptionServer(Object.assign({}, options, {keepAlive: 10}), httpServerWithKA);
new SubscriptionServer(Object.assign({}, options, {keepAlive: 10}), { server: httpServerWithKA});

const httpServerWithEvents = createServer(notFoundRequestListener);
httpServerWithEvents.listen(EVENTS_TEST_PORT);
new SubscriptionServer(eventsOptions, httpServerWithEvents);
new SubscriptionServer(eventsOptions, { server: httpServerWithEvents});

const httpServerWithDelay = createServer(notFoundRequestListener);
httpServerWithDelay.listen(DELAYED_TEST_PORT);
@@ -173,7 +173,7 @@ new SubscriptionServer(Object.assign({}, options, {
}, 100);
});
},
}), httpServerWithDelay);
}), { server: httpServerWithDelay});

const httpServerRaw = createServer(notFoundRequestListener);
httpServerRaw.listen(RAW_TEST_PORT);