debug
("WebSocket")
wsClient = new
WebSocket
(WsUrl);
} else
if
('MozWebSocket' in window) {
debug
("MozWebSocket")
wsClient = new
MozWebSocket
(WsUrl);
wsClient
.onopen
=
function
() {
onOpen
()
wsClient
.onclose
=
function
() {
onClose
()
wsClient
.onmessage
=
function
(evt) {
onMessage
(evt)
wsClient
.onerror
=
function
() {
onError
()
} else
if
(mui.os.android) {
var
Toolkit = plus
.android
.importClass
("com.HBuilder.integrate.WsHelper");
if
(Toolkit) {
Toolkit
.webConnect
(WsUrl);
} else {
plus
.nativeUI
.alert
("IM服务器连接失败");
Visual Studio Code
Webpack
-
6120
-
vivo互联网技术
Web Components