Skip to content
This repository was archived by the owner on Aug 16, 2023. It is now read-only.

Commit e774370

Browse files
author
Valentin Kunz
committed
Set protocols default value to an empty Array.
1 parent 2de2125 commit e774370

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

jquery.websocket.js

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
(function($){
1212
$.extend({
1313
websocket: function(url, s, protocols) {
14+
protocols = protocols || [];
1415
var ws = window['MozWebSocket'] ? new MozWebSocket(url, protocols) : window['WebSocket'] ? new WebSocket(url, protocols) : {
1516
send: function(m){ return false; },
1617
close: function(){}

0 commit comments

Comments
 (0)