Skip to content

Commit cdd3047

Browse files
authored
Merge pull request #93 from hapinessjs/next
Next into master
2 parents 5f8aa3a + 62be04a commit cdd3047

4 files changed

Lines changed: 12 additions & 3 deletions

File tree

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,15 @@ To set up your development environment:
115115
[Back to top](#table-of-contents)
116116

117117
## Change History
118+
* v1.5.4 (2018-06-19)
119+
* WebSocketServer: add sec-websocket-protocol in response
120+
* v1.5.3 (2018-05-29)
121+
* HttpRequestInfo types
122+
* Add credentials
123+
* v1.5.2 (2018-05-09)
124+
* Shutdown all extensions if one failed in bootstrap
125+
* v1.5.1 (2018-04-06)
126+
* Allow to import many time the same modules if it has no routes inside
118127
* v1.5.0 (2018-03-27)
119128
* EventManager Extension
120129
* Documentation

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hapiness/core",
3-
"version": "1.5.3",
3+
"version": "1.5.4",
44
"description": "Project to have a HapiJS (https://hapijs.com/) based framework to create easier NodeJS back-end with some awesome features",
55
"main": "commonjs/index.js",
66
"types": "index.d.ts",

src/extensions/socket-server/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export class WebSocketServer {
9999
* @param {request} _request
100100
*/
101101
private onRequestHandler(_request: request): void {
102-
const connection = _request.accept(null, _request.origin);
102+
const connection = _request.accept(<string>_request.httpRequest.headers['sec-websocket-protocol'] || '', _request.origin);
103103
const socket = new Socket(_request, connection, this.rooms);
104104
const index = this.sockets.push(socket) - 1;
105105
connection.on('close', conn => {

0 commit comments

Comments
 (0)