Improved test coverage

- Added tests for handshakes in namespaces (one roundtrip)
- Replaced misleading 'handshake' with 'authentication', where the second roundtrip is used
This commit is contained in:
Fabian Arndt
2019-10-15 12:54:02 +02:00
parent e66148fbb2
commit 8c9a31a16b
5 changed files with 65 additions and 10 deletions

View File

@ -114,7 +114,7 @@ function noQsMethod (options) {
};
}
function authorize (options, onConnection) {
function authorize (options) {
options = xtend({ decodedPropertyName: 'decoded_token', encodedPropertyName: 'encoded_token' }, options);
if (typeof options.secret !== 'string' && typeof options.secret !== 'function') {