소스 검색

Fix WebSockets constructor with empty subprotocol

Dominic Szablewski 8 년 전
부모
커밋
67b64307d3
2개의 변경된 파일4개의 추가작업 그리고 6개의 파일을 삭제
  1. 2 4
      jsmpeg.min.js
  2. 2 2
      src/websocket.js

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 2 - 4
jsmpeg.min.js


+ 2 - 2
src/websocket.js 파일 보기

@@ -34,8 +34,8 @@ WSSource.prototype.start = function() {
34 34
 	this.shouldAttemptReconnect = !!this.reconnectInterval;
35 35
 	this.progress = 0;
36 36
 	this.established = false;
37
-
38
-	this.socket = new WebSocket(this.url, this.options.protocols || '');
37
+	
38
+	this.socket = new WebSocket(this.url, this.options.protocols || null);
39 39
 	this.socket.binaryType = 'arraybuffer';
40 40
 	this.socket.onmessage = this.onMessage.bind(this);
41 41
 	this.socket.onopen = this.onOpen.bind(this);