Coder Social home page Coder Social logo

wechat-wxapp-chat's Introduction

##BUG

  • 微信越来越傻帽了, 微信小程序socket就是接收不到值(而且造成服务器ws模块各种问题, 要使调试环境的微信小程序请求nodejs时, nodejs不报错, 必须设置 verifyClient: socketVerify),用原生的 websocket(client文件夹下)不知多么正常,无语了...
    // 创建一个 socket 连接(必须是wss协议)
    wx.connectSocket({
      // url: 'ws://localhost',
      url: 'wss://dev.321zou.com', // 这个地址需要appid管理员设置才行, 切记
      data: {
        x: '',
        y: ''
      },
      header: {
        'content-type': 'application/json'
      },
      method: 'GET',
      success: function (res) {
        console.log('connect success: ', res)
      },
      complete: function (res) {
        console.log('complete: ', res)
      },
      fail: function (err) {
        console.log('connect error: ', err)
      }
    })
  • 预览时居然不会编译es6原有的方法 Object.assign 等, 所以在手机上是个大坑(还是得用我强大的babel来救场)...

  • main-chat 设置了高度为 100% 在手机端就不显示了, 好诡异...

.main-chat {
  width: 100%;
  /*height: 100%;*/
  overflow: hidden;
}

wechat-wxapp-chat's People

Contributors

fengyun2 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.