socket.io-wx-client

0.0.1 • Public • Published

socket.io-wx-client

socket.io client for wechat app and game

2018/5/10 by DKZ

fork from socket.io-client v2.1.0

add engine.io-client v3.2.1

How to use

A standalone build of socket.io-client is exposed automatically by the socket.io server as /socket.io/socket.io.js. Alternatively you can serve the file socket.io.js found in the dist folder.

  var socket = io('http://localhost',{
    'transportOptions':{
        'polling':{
            'extraHeaders':{'Cookie':cookies}
        }
    },
    'forceBase64':true
  });
  socket.on('connect', function(){});
  socket.on('event', function(data){});
  socket.on('disconnect', function(){});

API

See API

License

MIT

Package Sidebar

Install

npm i socket.io-wx-client

Weekly Downloads

2

Version

0.0.1

License

MIT

Unpacked Size

907 kB

Total Files

41

Last publish

Collaborators

  • davidkingzyb