ReferenceError: DataStream is not defined

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

txiaoci
Posts: 1
Joined: 11 Jan 2018, 11:59

ReferenceError: DataStream is not defined

Postby txiaoci » 11 Jan 2018, 12:10

Hi,
WeChat publish small game platform recently, when i use it's ide (write code in cocos2djs+sfs2x js client), it throw a exception as following:

ReferenceError: DataStream is not defined
at sfs2x-api-1.7.6.js:4899
at require (WAGame.js:11)
at WAGame.js:11
at n (cocos2d-js-min.js:1)
at cocos2d-js-min.js:1
at g.js (cocos2d-js-min.js:1)
at g.134.g.handle (cocos2d-js-min.js:1)
at n (cocos2d-js-min.js:1)
at cocos2d-js-min.js:1
at window.WXDownloader.WXDownloader.handle (wx-downloader.js:44)
window.onerror

help!help! In china WeChat like facebook, it's a big market.
3.jpg
(186.24 KiB) Not downloaded yet
User avatar
Bax
Site Admin
Posts: 4385
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: ReferenceError: DataStream is not defined

Postby Bax » 11 Jan 2018, 15:01

Hello.
Our SpaceWar example (distributed in the JavaScript examples package) was developed in Cocos2D and we didn't encounter issues.
What if you setup a very small project without including other libraries except the SFS API? Do you get the same error?
Paolo Bax
The SmartFoxServer Team

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 3 guests