From 9bfcfe8a4659623d35f1885478eb83149978f712 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=D0=BF=D1=89=D0=BA=20=D0=A8=D0=BC=D1=84=D1=82=D1=89=D0=BC?= Date: Tue, 26 Jan 2016 14:45:02 +0300 Subject: [PATCH] Update angular2-websocket.ts Wrapped message object within #onMessageHandler() into the array. --- angular2-websocket.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/angular2-websocket.ts b/angular2-websocket.ts index 412a2f6..43a6db7 100644 --- a/angular2-websocket.ts +++ b/angular2-websocket.ts @@ -152,7 +152,7 @@ export class $WebSocket { var currentCallback; for (var i = 0; i < self.onMessageCallbacks.length; i++) { currentCallback = self.onMessageCallbacks[i]; - currentCallback.fn.apply(self, message); + currentCallback.fn.apply(self, [message]); } };