<?php
/* Smarty version 3.1.33, created on 2020-09-04 19:25:32
  from 'E:\phpStudy\PHPTutorial\WWW\onlive\application\front\views\templates\default\socket.html' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '3.1.33',
  'unifunc' => 'content_5f52242c3f2046_35388426',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '7209c22a515ba38c439e64a77b8ef2afd3f3fbcf' => 
    array (
      0 => 'E:\\phpStudy\\PHPTutorial\\WWW\\onlive\\application\\front\\views\\templates\\default\\socket.html',
      1 => 1599218731,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_5f52242c3f2046_35388426 (Smarty_Internal_Template $_smarty_tpl) {
?><!--<?php echo '<script'; ?>
 src='https://cdn.bootcss.com/socket.io/2.0.3/socket.io.js'><?php echo '</script'; ?>
>-->
<!--<?php echo '<script'; ?>
>-->
    <!--// 如果服务端不在本机，请把127.0.0.1改成服务端ip-->
    <!--var socket = io('https://zhibo.cdsile.cn:2000');-->
    <!--// 当连接服务端成功时触发connect默认事件-->
    <!--socket.on('connect', function(){-->
        <!--console.log('connect success');-->
    <!--});-->
<!--<?php echo '</script'; ?>
>-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php echo '<script'; ?>
 src='//cdn.bootcss.com/socket.io/1.3.7/socket.io.js'><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
>
    // 连接服务端
    var socket = io('http://www.onlive.com/:2000');
    // 触发服务端的chat message事件
    var data = {
        'user_id':'403',

    }
    socket.emit('login',data, (data)=>{
    	console.log(data);
    });
    // //服务端通过emit('chat message from server', $msg)触发客户端的chat message from server事件

    var data = {
        'user_id':'403',
        'userd_id':'404',
    }
    socket.emit('focus',data, (data)=>{
        console.log(data);
    });
    var data = {
        'user_id':'404',
        'dynamic_id':'1',
    }
    socket.emit('click',data, (data)=>{
        console.log(data);
    });
    // socket.on('click', function(msg){
    //     console.log( msg);
    // });
    socket.on('say', function(msg){
        console.log( msg);
    });
    var data = {
        'user_id':'403',
        'userd_id':'404',
        'content':'啦啦啦，我就要',
        'type':1,
    }
    socket.emit('chat',data, (data)=>{
        console.log(data);
    });
    // var data = {
    //     'number':88888888,
    //     'room_id':'1',
    // }
    // socket.emit('band_room',data,(data)=>{
    // 	console.log(data);
    // 	console.log(222);
    // });
    // // 服务端通过emit('chat message from server', $msg)触发客户端的chat message from server事件
    // socket.on('band_room', function(msg){
    //     console.log(msg);
    //     console.log(111);
    // });
    // var data = {
    //     'number':88888888,
    //     'room_id':'1',
    //     'content':'3333',
    //
    // }
    // socket.emit('user_room_say',data,(data)=>{
    // 	console.log(data);
    // 	console.log(3333);
    // });
    // // 服务端通过emit('chat message from server', $msg)触发客户端的chat message from server事件
    // socket.on('user_room_say', function(msg){
    //     console.log(msg);
    //     console.log(4444);
    // });
    // var data = {
    //     'number':88888888,
    //     'room_id':'1',
    //     'gift':'1',
    //
    // }
    // socket.emit('gift',data,(data)=>{
    // 	console.log(data);
    // 	console.log(5555);
    // });
    // // 服务端通过emit('chat message from server', $msg)触发客户端的chat message from server事件
    // socket.on('gift', function(msg){
    //     console.log(msg);
    //     console.log(7777);
    // });
    // var data = {
    //     'gift':'1',
    //     'room_id':1,
    //     'number':88888888
    // }
    // socket.emit('gift', data);
    // // 服务端通过emit('chat message from server', $msg)触发客户端的chat message from server事件
    // socket.on('gift', function(msg){
    //     console.log('user_room_say:' + msg + ' from server');
    // });
    // var data2 = {
    //     'user_number':88888888,
    //     'gift':1,
    //     'number':1,
    //     'room_id':1,
    // }
    // socket.emit('gift', data2);
    // // 服务端通过emit('chat message from server', $msg)触发客户端的chat message from server事件
    // socket.on('gift', function(msg){
    //     console.log('gift:' + msg + ' from server');
    // });
<?php echo '</script'; ?>
>
<!--&lt;!&ndash;<html>&ndash;&gt;-->
<!--&lt;!&ndash;<?php echo '<script'; ?>
 src="/resources/js/jquery-1.7.2.min.js"><?php echo '</script'; ?>
>&ndash;&gt;-->
<!--&lt;!&ndash;<?php echo '<script'; ?>
 src="jquery-1.8.3.min.js"><?php echo '</script'; ?>
>&ndash;&gt;-->
<!--&lt;!&ndash;<?php echo '<script'; ?>
>&ndash;&gt;-->
    <!--&lt;!&ndash;var client_id = '';&ndash;&gt;-->
    <!--&lt;!&ndash;function connect() {&ndash;&gt;-->
        <!--&lt;!&ndash;ws = new WebSocket("ws:118.190.141.120:2000");&ndash;&gt;-->
        <!--&lt;!&ndash;ws.onopen = onopen;&ndash;&gt;-->
        <!--&lt;!&ndash;// 当有消息时根据消息类型显示不同信息&ndash;&gt;-->
        <!--&lt;!&ndash;ws.onmessage = onmessage;&ndash;&gt;-->
        <!--&lt;!&ndash;ws.onclose = function() {&ndash;&gt;-->
            <!--&lt;!&ndash;console.log("连接关闭，定时重连");&ndash;&gt;-->
            <!--&lt;!&ndash;connect();&ndash;&gt;-->
        <!--&lt;!&ndash;};&ndash;&gt;-->
        <!--&lt;!&ndash;ws.onerror = function() {&ndash;&gt;-->
            <!--&lt;!&ndash;console.log("出现错误");&ndash;&gt;-->
        <!--&lt;!&ndash;};&ndash;&gt;-->

    <!--&lt;!&ndash;}&ndash;&gt;-->
    <!--&lt;!&ndash;function onopen()&ndash;&gt;-->
    <!--&lt;!&ndash;{&ndash;&gt;-->
        <!--&lt;!&ndash;if(!name)&ndash;&gt;-->
        <!--&lt;!&ndash;{&ndash;&gt;-->
            <!--&lt;!&ndash;// show_prompt();&ndash;&gt;-->
            <!--&lt;!&ndash;alert('111');&ndash;&gt;-->
        <!--&lt;!&ndash;}&ndash;&gt;-->
        <!--&lt;!&ndash;// 登录&ndash;&gt;-->
        <!--&lt;!&ndash;var message = {&ndash;&gt;-->
            <!--&lt;!&ndash;nickname: "benben_2015",&ndash;&gt;-->
            <!--&lt;!&ndash;email: "123456@qq.com",&ndash;&gt;-->
            <!--&lt;!&ndash;content: "I love programming",&ndash;&gt;-->
            <!--&lt;!&ndash;// type:'creat',&ndash;&gt;-->
            <!--&lt;!&ndash;type:'oneUserLogin',&ndash;&gt;-->
            <!--&lt;!&ndash;AUTHORIZATION:"1106hgrbRqw7QkojgZvSEGpAql3OV6Wik00FLdLY3Z9Y92cwfU2qD4A1kthr14w0QSuGCRXptz4LliW_1REdS1T_eO5fruf7zgKltmZ08BV8Z0-VkIvWY7rmYNnvkxB4UlWdrh6P-ww7yTsMiPDisfNrJsTW-jxR5tmsf9E6Pv6gMAu2lurZDKEhj0GEF-XdgIK0nmFJWo-KeJGVgIAbC96U6KycUkUw3mHDzPgVts0P63E81CGnBOl1YA0T3yvYVtfJ0gYsm0el7Y3h_M4DWRJsRgl973ZRHSZ90_nPQTzfiPL7FvE5ObD7iPxXFoA32OwpO9zbZ5cKBVCIJxdNVok2KPYSvhmNEzVgKU344dHOklyDeLvh-JElUp7-O6mSpOsSQoslOZ4UT8osHte0POo6Bk6NO9w4AkETyk3HBiHbNsYk3cf53tTT6dj10B0v3qCD8_zlkpUUBJfl_QT7U-XtXge1U7Ko5P0Qx3xifqulBiDsAYXdy5Kk6kApdYEBtH4cMYNdqS0scdmZA0Rb7223YfhpXdPM02o_RUtU5ywUwtpPn4s9Kft3qv52NK_mUNVTxne8Cvi53lR8LU2DUp6_K5A1YO41tKf3KszMBEbI3ViOtMWt0vtKkEkPrlPWwDRp1y9xb_G47Q0-d4KEdVRtLnq-1dsomSJrcQiZi3i9l8pUKX178MUOYk0_PFL_Q_5YuKLxdFWPE7Nag32YQXpXnK21pdKMqaHhIYGpRT13anPTJaZBd8dVs7nhvynIsBqw_fRT7kOyZ36XcoVRSdraULLmpEgzY1I7LVsJJsMGwaY3K-Lcg7KjvOQqDc1ppMpdFEBXmaAaupWGsKTsJ8mQqgdvfVdZns-v-lf5zIEtYkF1jqhpmR2hsJym1aoO-uCDrgmJlqFK5U6VBFABxbGJss3WwKHwp_wy6GKqBZS3zEsb4jsI7JTcXpkzStc9MLRXXwkJ7PQiOERJ0H1WPM_cxH6eCjRQ2hhZiZgvub7LBMskZzkktMYRX0YIZmFxfhBmKpByQ5H-YtmMSN622IG0r4kVwq5apDMG0D0uoD5TZKPP6yEecW-K6whx8snID3ow3oEwXUqKBlNBMGoMJ-GwJiRU-cdmOhLFX9wbtAH4IkH9OSCehQVhvXqckbG-1HQ3x2_qyD-GQXPmGLbriB-s0jZUlbJRbg8-3h4xdtifsp9WRKpXp6e4mJ-pFUUcWaYBVKYhL2wgmsNXY0sEBgUY28POphz3sDkXTPkDxiDFFPahHWY_2mrN5_mm9koJB2tzMxktMtdsMLAY99Ey8HJxUF5ZFzF5Q26PDuFYFOtK8iQub5JWJ4M11N_Nn5dGcFWktn0JmJB_yREcNJ4_V5vnSi3SSIsIPoPKCc-o5qhp_Xl8yTd7Q8KkKGrH24KpG8jX5G7lC-e7W1pmnvaUx5tzBY4NgqX_moSSJP71wmnTaJDhYeaYMLSbdgnLudBMRnRlvm_ZlWiDMvaIjWGfTCuR2wY7K74XQaaPK3Vl64tUwO1TkuxTlUEBP-f8bC8KzvrP2kEB1U41UHT0BCq4TgP1a-XglgeqslZp7tNI"&ndash;&gt;-->
        <!--&lt;!&ndash;};&ndash;&gt;-->
        <!--&lt;!&ndash;console.log(client_id);&ndash;&gt;-->
        <!--&lt;!&ndash;$.post('/api/workMan', message, function(data){&ndash;&gt;-->
            <!--&lt;!&ndash;console.log(data);&ndash;&gt;-->
        <!--&lt;!&ndash;}, 'json');&ndash;&gt;-->
    <!--&lt;!&ndash;}&ndash;&gt;-->
    <!--&lt;!&ndash;function onmessage(e)&ndash;&gt;-->
    <!--&lt;!&ndash;{&ndash;&gt;-->
        <!--&lt;!&ndash;var data = eval("("+e.data+")");&ndash;&gt;-->
        <!--&lt;!&ndash;client_id = data['client_id'];&ndash;&gt;-->
        <!--&lt;!&ndash;var message = {&ndash;&gt;-->
            <!--&lt;!&ndash;nickname: "benben_2015",&ndash;&gt;-->
            <!--&lt;!&ndash;email: "123456@qq.com",&ndash;&gt;-->
            <!--&lt;!&ndash;// type:'band',&ndash;&gt;-->
            <!--&lt;!&ndash;type:'oneUserBand',&ndash;&gt;-->
            <!--&lt;!&ndash;client_id:client_id,&ndash;&gt;-->
            <!--&lt;!&ndash;AUTHORIZATION:"1106hgrbRqw7QkojgZvSEGpAql3OV6Wik00FLdLY3Z9Y92cwfU2qD4A1kthr14w0QSuGCRXptz4LliW_1REdS1T_eO5fruf7zgKltmZ08BV8Z0-VkIvWY7rmYNnvkxB4UlWdrh6P-ww7yTsMiPDisfNrJsTW-jxR5tmsf9E6Pv6gMAu2lurZDKEhj0GEF-XdgIK0nmFJWo-KeJGVgIAbC96U6KycUkUw3mHDzPgVts0P63E81CGnBOl1YA0T3yvYVtfJ0gYsm0el7Y3h_M4DWRJsRgl973ZRHSZ90_nPQTzfiPL7FvE5ObD7iPxXFoA32OwpO9zbZ5cKBVCIJxdNVok2KPYSvhmNEzVgKU344dHOklyDeLvh-JElUp7-O6mSpOsSQoslOZ4UT8osHte0POo6Bk6NO9w4AkETyk3HBiHbNsYk3cf53tTT6dj10B0v3qCD8_zlkpUUBJfl_QT7U-XtXge1U7Ko5P0Qx3xifqulBiDsAYXdy5Kk6kApdYEBtH4cMYNdqS0scdmZA0Rb7223YfhpXdPM02o_RUtU5ywUwtpPn4s9Kft3qv52NK_mUNVTxne8Cvi53lR8LU2DUp6_K5A1YO41tKf3KszMBEbI3ViOtMWt0vtKkEkPrlPWwDRp1y9xb_G47Q0-d4KEdVRtLnq-1dsomSJrcQiZi3i9l8pUKX178MUOYk0_PFL_Q_5YuKLxdFWPE7Nag32YQXpXnK21pdKMqaHhIYGpRT13anPTJaZBd8dVs7nhvynIsBqw_fRT7kOyZ36XcoVRSdraULLmpEgzY1I7LVsJJsMGwaY3K-Lcg7KjvOQqDc1ppMpdFEBXmaAaupWGsKTsJ8mQqgdvfVdZns-v-lf5zIEtYkF1jqhpmR2hsJym1aoO-uCDrgmJlqFK5U6VBFABxbGJss3WwKHwp_wy6GKqBZS3zEsb4jsI7JTcXpkzStc9MLRXXwkJ7PQiOERJ0H1WPM_cxH6eCjRQ2hhZiZgvub7LBMskZzkktMYRX0YIZmFxfhBmKpByQ5H-YtmMSN622IG0r4kVwq5apDMG0D0uoD5TZKPP6yEecW-K6whx8snID3ow3oEwXUqKBlNBMGoMJ-GwJiRU-cdmOhLFX9wbtAH4IkH9OSCehQVhvXqckbG-1HQ3x2_qyD-GQXPmGLbriB-s0jZUlbJRbg8-3h4xdtifsp9WRKpXp6e4mJ-pFUUcWaYBVKYhL2wgmsNXY0sEBgUY28POphz3sDkXTPkDxiDFFPahHWY_2mrN5_mm9koJB2tzMxktMtdsMLAY99Ey8HJxUF5ZFzF5Q26PDuFYFOtK8iQub5JWJ4M11N_Nn5dGcFWktn0JmJB_yREcNJ4_V5vnSi3SSIsIPoPKCc-o5qhp_Xl8yTd7Q8KkKGrH24KpG8jX5G7lC-e7W1pmnvaUx5tzBY4NgqX_moSSJP71wmnTaJDhYeaYMLSbdgnLudBMRnRlvm_ZlWiDMvaIjWGfTCuR2wY7K74XQaaPK3Vl64tUwO1TkuxTlUEBP-f8bC8KzvrP2kEB1U41UHT0BCq4TgP1a-XglgeqslZp7tNI"&ndash;&gt;-->
        <!--&lt;!&ndash;};&ndash;&gt;-->
        <!--&lt;!&ndash;$.post('/api/workMan', message, function(data){&ndash;&gt;-->
            <!--&lt;!&ndash;console.log(data);&ndash;&gt;-->
        <!--&lt;!&ndash;}, 'json');&ndash;&gt;-->
    <!--&lt;!&ndash;}&ndash;&gt;-->
    <!--&lt;!&ndash;function onSubmit() {&ndash;&gt;-->
        <!--&lt;!&ndash;var input = document.getElementById("textarea");&ndash;&gt;-->
        <!--&lt;!&ndash;var to_client_id = $("#client_list option:selected").attr("value");&ndash;&gt;-->
        <!--&lt;!&ndash;var to_client_name = $("#client_list option:selected").text();&ndash;&gt;-->
        <!--&lt;!&ndash;var message = {&ndash;&gt;-->
            <!--&lt;!&ndash;type:'say',&ndash;&gt;-->
            <!--&lt;!&ndash;to_user_number:'88888888',&ndash;&gt;-->
            <!--&lt;!&ndash;user_number:'88888888',//主播用户编号&ndash;&gt;-->
            <!--&lt;!&ndash;content:input.value.replace(/"/g, '\\"').replace(/\n/g,'\\n').replace(/\r/g, '\\r'),&ndash;&gt;-->
            <!--&lt;!&ndash;gift:'1',&ndash;&gt;-->
            <!--&lt;!&ndash;room_id:'1',&ndash;&gt;-->
            <!--&lt;!&ndash;AUTHORIZATION:"1106hgrbRqw7QkojgZvSEGpAql3OV6Wik00FLdLY3Z9Y92cwfU2qD4A1kthr14w0QSuGCRXptz4LliW_1REdS1T_eO5fruf7zgKltmZ08BV8Z0-VkIvWY7rmYNnvkxB4UlWdrh6P-ww7yTsMiPDisfNrJsTW-jxR5tmsf9E6Pv6gMAu2lurZDKEhj0GEF-XdgIK0nmFJWo-KeJGVgIAbC96U6KycUkUw3mHDzPgVts0P63E81CGnBOl1YA0T3yvYVtfJ0gYsm0el7Y3h_M4DWRJsRgl973ZRHSZ90_nPQTzfiPL7FvE5ObD7iPxXFoA32OwpO9zbZ5cKBVCIJxdNVok2KPYSvhmNEzVgKU344dHOklyDeLvh-JElUp7-O6mSpOsSQoslOZ4UT8osHte0POo6Bk6NO9w4AkETyk3HBiHbNsYk3cf53tTT6dj10B0v3qCD8_zlkpUUBJfl_QT7U-XtXge1U7Ko5P0Qx3xifqulBiDsAYXdy5Kk6kApdYEBtH4cMYNdqS0scdmZA0Rb7223YfhpXdPM02o_RUtU5ywUwtpPn4s9Kft3qv52NK_mUNVTxne8Cvi53lR8LU2DUp6_K5A1YO41tKf3KszMBEbI3ViOtMWt0vtKkEkPrlPWwDRp1y9xb_G47Q0-d4KEdVRtLnq-1dsomSJrcQiZi3i9l8pUKX178MUOYk0_PFL_Q_5YuKLxdFWPE7Nag32YQXpXnK21pdKMqaHhIYGpRT13anPTJaZBd8dVs7nhvynIsBqw_fRT7kOyZ36XcoVRSdraULLmpEgzY1I7LVsJJsMGwaY3K-Lcg7KjvOQqDc1ppMpdFEBXmaAaupWGsKTsJ8mQqgdvfVdZns-v-lf5zIEtYkF1jqhpmR2hsJym1aoO-uCDrgmJlqFK5U6VBFABxbGJss3WwKHwp_wy6GKqBZS3zEsb4jsI7JTcXpkzStc9MLRXXwkJ7PQiOERJ0H1WPM_cxH6eCjRQ2hhZiZgvub7LBMskZzkktMYRX0YIZmFxfhBmKpByQ5H-YtmMSN622IG0r4kVwq5apDMG0D0uoD5TZKPP6yEecW-K6whx8snID3ow3oEwXUqKBlNBMGoMJ-GwJiRU-cdmOhLFX9wbtAH4IkH9OSCehQVhvXqckbG-1HQ3x2_qyD-GQXPmGLbriB-s0jZUlbJRbg8-3h4xdtifsp9WRKpXp6e4mJ-pFUUcWaYBVKYhL2wgmsNXY0sEBgUY28POphz3sDkXTPkDxiDFFPahHWY_2mrN5_mm9koJB2tzMxktMtdsMLAY99Ey8HJxUF5ZFzF5Q26PDuFYFOtK8iQub5JWJ4M11N_Nn5dGcFWktn0JmJB_yREcNJ4_V5vnSi3SSIsIPoPKCc-o5qhp_Xl8yTd7Q8KkKGrH24KpG8jX5G7lC-e7W1pmnvaUx5tzBY4NgqX_moSSJP71wmnTaJDhYeaYMLSbdgnLudBMRnRlvm_ZlWiDMvaIjWGfTCuR2wY7K74XQaaPK3Vl64tUwO1TkuxTlUEBP-f8bC8KzvrP2kEB1U41UHT0BCq4TgP1a-XglgeqslZp7tNI"&ndash;&gt;-->
        <!--&lt;!&ndash;}&ndash;&gt;-->
        <!--&lt;!&ndash;$.post('/api/workMan', message, function(data){&ndash;&gt;-->
            <!--&lt;!&ndash;input.value = "";&ndash;&gt;-->
            <!--&lt;!&ndash;input.focus();&ndash;&gt;-->
        <!--&lt;!&ndash;}, 'json');&ndash;&gt;-->

    <!--&lt;!&ndash;}&ndash;&gt;-->
	<!--&lt;!&ndash;//连接类型有三种 一是主播创建房间creat、二是用户登录 login&ndash;&gt;-->

	<!--&lt;!&ndash;// 服务端主动推送消息时会触发这里的onmessage&ndash;&gt;-->
	<!--&lt;!&ndash;// ws.onmessage = function(e){&ndash;&gt;-->
	<!--&lt;!&ndash;// 	// json数据转换成js对象&ndash;&gt;-->
	<!--&lt;!&ndash;// 	var data = eval("("+e.data+")");&ndash;&gt;-->
	<!--&lt;!&ndash;// 	var type = data.type || '';&ndash;&gt;-->
    <!--&lt;!&ndash;//&ndash;&gt;-->
	<!--&lt;!&ndash;// 	var token = "1106hgrbRqw7QkojgZvSEGpAql3OV6Wik00FLdLY3Z9Y92cwfU2qD4A1kthr14w0QSuGCRXptz4LliW_1REdS1T_eO5fruf7zgKltmZ08BV8Z0-VkIvWY7rmYNnvkxB4UlWdrh6P-ww7yTsMiPDisfNrJsTW-jxR5tmsf9E6Pv6gMAu2lurZDKEhj0GEF-XdgIK0nmFJWo-KeJGVgIAbC96U6KycUkUw3mHDzPgVts0P63E81CGnBOl1YA0T3yvYVtfJ0gYsm0el7Y3h_M4DWRJsRgl973ZRHSZ90_nPQTzfiPL7FvE5ObD7iPxXFoA32OwpO9zbZ5cKBVCIJxdNVok2KPYSvhmNEzVgKU344dHOklyDeLvh-JElUp7-O6mSpOsSQoslOZ4UT8osHte0POo6Bk6NO9w4AkETyk3HBiHbNsYk3cf53tTT6dj10B0v3qCD8_zlkpUUBJfl_QT7U-XtXge1U7Ko5P0Qx3xifqulBiDsAYXdy5Kk6kApdYEBtH4cMYNdqS0scdmZA0Rb7223YfhpXdPM02o_RUtU5ywUwtpPn4s9Kft3qv52NK_mUNVTxne8Cvi53lR8LU2DUp6_K5A1YO41tKf3KszMBEbI3ViOtMWt0vtKkEkPrlPWwDRp1y9xb_G47Q0-d4KEdVRtLnq-1dsomSJrcQiZi3i9l8pUKX178MUOYk0_PFL_Q_5YuKLxdFWPE7Nag32YQXpXnK21pdKMqaHhIYGpRT13anPTJaZBd8dVs7nhvynIsBqw_fRT7kOyZ36XcoVRSdraULLmpEgzY1I7LVsJJsMGwaY3K-Lcg7KjvOQqDc1ppMpdFEBXmaAaupWGsKTsJ8mQqgdvfVdZns-v-lf5zIEtYkF1jqhpmR2hsJym1aoO-uCDrgmJlqFK5U6VBFABxbGJss3WwKHwp_wy6GKqBZS3zEsb4jsI7JTcXpkzStc9MLRXXwkJ7PQiOERJ0H1WPM_cxH6eCjRQ2hhZiZgvub7LBMskZzkktMYRX0YIZmFxfhBmKpByQ5H-YtmMSN622IG0r4kVwq5apDMG0D0uoD5TZKPP6yEecW-K6whx8snID3ow3oEwXUqKBlNBMGoMJ-GwJiRU-cdmOhLFX9wbtAH4IkH9OSCehQVhvXqckbG-1HQ3x2_qyD-GQXPmGLbriB-s0jZUlbJRbg8-3h4xdtifsp9WRKpXp6e4mJ-pFUUcWaYBVKYhL2wgmsNXY0sEBgUY28POphz3sDkXTPkDxiDFFPahHWY_2mrN5_mm9koJB2tzMxktMtdsMLAY99Ey8HJxUF5ZFzF5Q26PDuFYFOtK8iQub5JWJ4M11N_Nn5dGcFWktn0JmJB_yREcNJ4_V5vnSi3SSIsIPoPKCc-o5qhp_Xl8yTd7Q8KkKGrH24KpG8jX5G7lC-e7W1pmnvaUx5tzBY4NgqX_moSSJP71wmnTaJDhYeaYMLSbdgnLudBMRnRlvm_ZlWiDMvaIjWGfTCuR2wY7K74XQaaPK3Vl64tUwO1TkuxTlUEBP-f8bC8KzvrP2kEB1U41UHT0BCq4TgP1a-XglgeqslZp7tNI";&ndash;&gt;-->
	<!--&lt;!&ndash;// 	switch(type){&ndash;&gt;-->
	<!--&lt;!&ndash;// 			// Events.php中返回的init类型的消息，将client_id发给后台进行uid绑定&ndash;&gt;-->
	<!--&lt;!&ndash;// 		case 'init':&ndash;&gt;-->
	<!--&lt;!&ndash;// 			// 利用jquery发起ajax请求，将client_id发给后端进行uid绑定&ndash;&gt;-->
	<!--&lt;!&ndash;// 			$.post('/api/workMan', {client_id: data.client_id,'type':'creat','AUTHORIZATION': token}, function(data){}, 'json');&ndash;&gt;-->
	<!--&lt;!&ndash;// 			break;&ndash;&gt;-->
	<!--&lt;!&ndash;// 			// 当mvc框架调用GatewayClient发消息时直接alert出来&ndash;&gt;-->
	<!--&lt;!&ndash;// 		default :&ndash;&gt;-->
	<!--&lt;!&ndash;// 			alert(e.data);&ndash;&gt;-->
	<!--&lt;!&ndash;// 	}&ndash;&gt;-->
	<!--&lt;!&ndash;// };&ndash;&gt;-->


<!--&lt;!&ndash;<?php echo '</script'; ?>
>&ndash;&gt;-->
<!--&lt;!&ndash;<body onload="connect();">&ndash;&gt;-->
<!--&lt;!&ndash;<div class="container">&ndash;&gt;-->
    <!--&lt;!&ndash;<div class="row clearfix">&ndash;&gt;-->
        <!--&lt;!&ndash;<div class="col-md-1 column">&ndash;&gt;-->
        <!--&lt;!&ndash;</div>&ndash;&gt;-->
        <!--&lt;!&ndash;<div class="col-md-6 column">&ndash;&gt;-->
            <!--&lt;!&ndash;<div class="thumbnail">&ndash;&gt;-->
                <!--&lt;!&ndash;<div class="caption" id="dialog"></div>&ndash;&gt;-->
            <!--&lt;!&ndash;</div>&ndash;&gt;-->
            <!--&lt;!&ndash;<form onsubmit="onSubmit(); return false;">&ndash;&gt;-->
                <!--&lt;!&ndash;<select style="margin-bottom:8px" id="client_list">&ndash;&gt;-->
                    <!--&lt;!&ndash;<option value="all">所有人</option>&ndash;&gt;-->
                <!--&lt;!&ndash;</select>&ndash;&gt;-->
                <!--&lt;!&ndash;<textarea class="textarea thumbnail" id="textarea"></textarea>&ndash;&gt;-->
                <!--&lt;!&ndash;<div class="say-btn"><input type="submit" class="btn btn-default" value="发表" /></div>&ndash;&gt;-->
            <!--&lt;!&ndash;</form>&ndash;&gt;-->
            <!--&lt;!&ndash;<div>&ndash;&gt;-->
                <!--&lt;!&ndash;<b>房间列表:</b>（当前在 房间<?php echo '<?php ';?>echo isset($_GET['room_id'])&&intval($_GET['room_id'])>0 ? intval($_GET['room_id']):1; <?php echo '?>';?>）<br>&ndash;&gt;-->
                <!--&lt;!&ndash;<a href="/?room_id=1">房间1</a>    <a href="/?room_id=2">房间2</a>    <a href="/?room_id=3">房间3</a>    <a href="/?room_id=4">房间4</a>&ndash;&gt;-->
                <!--&lt;!&ndash;<br><br>&ndash;&gt;-->
            <!--&lt;!&ndash;</div>&ndash;&gt;-->
            <!--&lt;!&ndash;<p class="cp">PHP多进程+Websocket(HTML5/Flash)+PHP Socket实时推送技术    Powered by <a href="http://www.workerman.net/workerman-chat" target="_blank">workerman-chat</a></p>&ndash;&gt;-->
        <!--&lt;!&ndash;</div>&ndash;&gt;-->
        <!--&lt;!&ndash;<div class="col-md-3 column">&ndash;&gt;-->
            <!--&lt;!&ndash;<div class="thumbnail">&ndash;&gt;-->
                <!--&lt;!&ndash;<div class="caption" id="userlist"></div>&ndash;&gt;-->
            <!--&lt;!&ndash;</div>&ndash;&gt;-->

        <!--&lt;!&ndash;</div>&ndash;&gt;-->
    <!--&lt;!&ndash;</div>&ndash;&gt;-->
<!--&lt;!&ndash;</div>&ndash;&gt;-->
<!--&lt;!&ndash;</body>&ndash;&gt;-->
<!--&lt;!&ndash;</html>&ndash;&gt;--><?php }
}
