<commit_before>var app = getApp()
var socketOpen = false;//WebSocket 打开状态
Page({
  data: {
    messageTip: '',
    messageTextArr:[],
    messageContent:'TEST',
    userinfo:{}
  },
  //sendMessage
  formSubmit: function(e) {
    var that = this;
    console.log('formSubmit',e);
    var msg =  e.detail.value.messageContent;//获得输入文字
    console.log('send message:' +msg );
     if (socketOpen) {

       //如果使用Senparc.WebSocket，必须严格按照以下data数据字段发送（只能多不能少）
       var submitData = JSON.stringify({
          Messsage:msg,//必填
          SessionId:wx.getStorageSync("sessionId"),//选填，不需要可输入''
          FormId:e.detail.formId//选填formId用于发送模板消息，不需要可输入''
        });

      wx.sendSocketMessage({
        data:submitData
      });<commit_msg>Squashed 'src/Senparc.Weixin.WxOpen/' changes from edd9bb7b..b5565689<commit_after>var app = getApp()
var socketOpen = false;//WebSocket 打开状态
Page({
  data: {
    messageTip: '',
    messageTextArr:[],
    messageContent:'TEST',
    userinfo:{}
  },
  //sendMessage
  formSubmit: function(e) {
    var that = this;
    console.log('formSubmit',e);
    var msg =  e.detail.value.messageContent;//获得输入文字
    console.log('send message:' +msg );
     if (socketOpen) {

       //如果使用Senparc.WebSocket，必须严格按照以下data数据字段发送（只能多不能少）
       var submitData = JSON.stringify({
          Message:msg,//必填
          SessionId:wx.getStorageSync("sessionId"),//选填，不需要可输入''
          FormId:e.detail.formId//选填formId用于发送模板消息，不需要可输入''
        });

      wx.sendSocketMessage({
        data:submitData
      });
{'fraction_non_alphanumeric': 0.14650098103335513, 'fraction_numerical': 0.005886200130804447, 'mean_word_length': 2.8345864661654137, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3871146', 'n_tokens_mistral': 590, 'n_tokens_neox': 613, 'n_words': 78}