PatrickJS / angular-websocket

:arrow_upper_left: The missing Angular WebSocket module for connecting client applications to servers by @AngularClass
https://angularclass.github.io/angular-websocket
MIT License
1.22k stars 195 forks source link

How to use arraybuffer support? #60

Open mustafaakin opened 8 years ago

mustafaakin commented 8 years ago

I see the change here, however I do not know how to use it.

https://github.com/AngularClass/angular-websocket/commit/fac7d4504c746d3ed4529afaa4cb698b9e7aee63

I need to send ArrayBuffer's thru it.

vanishs commented 8 years ago

you can try this:

$websocket("addr", ["proto"],
      {
        binaryType: "arraybuffer"
      });

for now,$websocket work in arraybuffer mode