Skip to content

Commit

Permalink
Using UTF8 for transfers to fix issue michelle#11
Browse files Browse the repository at this point in the history
  • Loading branch information
piranna committed May 2, 2013
1 parent 7d9fb17 commit 353693e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/reliable.js
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ function Reliable(dc, debug) {
// Send a message reliably.
Reliable.prototype.send = function(msg) {
// Determine if chunking is necessary.
var bl = util.pack(msg);
var bl = util.pack(msg, true);
if (bl.size < this._mtu) {
this._handleSend(['no', bl]);
return;
Expand Down Expand Up @@ -724,7 +724,7 @@ Reliable.prototype._setupInterval = function() {
Reliable.prototype._intervalSend = function(msg) {
var self = this;
util.log('Sending...', msg);
msg = util.pack(msg);
msg = util.pack(msg, true);
util.blobToBinaryString(msg, function(str) {
self._dc.send(str);
});
Expand Down
Loading

0 comments on commit 353693e

Please sign in to comment.