Closed GoogleCodeExporter closed 9 years ago
In my case, the code below work as expected (UTF-8 content escaped). What's the
issue?
var oSessionIM = new tsip_session_message(oSipStack,
tsip_session.prototype.SetToStr("2233422677"),
tsip_session.prototype.SetHeader("What", "IM"));
oSessionIM.send(new String("Pêche à la moule"), "text/plain; charset=utf8");
oSipStack.on_event_message = function (evt) {
console.debug(evt.s_phrase);
switch (evt.e_message_type) {
case tsip_event_message_type_e.I_MESSAGE:
{
evt.get_session().accept();
console.debug("Incoming message=%s", evt.get_message().get_content_as_string());
break;
}
case tsip_event_message_type_e.AO_MESSAGE:
{
if (evt.i_code >= 200 && evt.i_code <= 299) {
console.debug("sent");
}
else if (evt.i_code >= 300) {
console.debug("not sent (%d)", evt.i_code);
}
break;
}
}
};
Original comment by boss...@yahoo.fr
on 29 May 2012 at 5:11
I have test it with websocket.opcode == binary data(ArrayBuffer) - Ok. But I
see the issue with message body if websocket.opcode is text frame.
// r59
Original comment by i...@fomine.com
on 29 May 2012 at 9:19
Attachments:
Original comment by boss...@yahoo.fr
on 1 Oct 2012 at 1:23
Original issue reported on code.google.com by
i...@fomine.com
on 29 May 2012 at 1:45