Skip to content

Commit fa30188

Browse files
author
Arun Gupta
committed
Adding binaryType attribute
1 parent ecbcfc8 commit fa30188

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

websocket/binary/src/main/webapp/websocket.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
var wsUri = "ws://" + document.location.host + document.location.pathname + "websocket";
4242
console.log("Connecting to " + wsUri);
4343
var websocket = new WebSocket(wsUri);
44+
websocket.binaryType = "arraybuffer";
4445
websocket.onopen = function(evt) { onOpen(evt) };
4546
websocket.onmessage = function(evt) { onMessage(evt) };
4647
websocket.onerror = function(evt) { onError(evt) };

0 commit comments

Comments
 (0)