Search found 4 matches

by Hamster
14 Sep 2017, 17:12
Forum: SFS2X HTML5 / JavaScript API
Topic: SFS2X with Webpack
Replies: 33
Views: 4911

Re: SFS2X with Webpack

Try installing the Type Definitions from Definitelly Typed with

Code: Select all

npm install --save-dev @types/smart-fox-server
by Hamster
08 Sep 2017, 09:45
Forum: SFS2X HTML5 / JavaScript API
Topic: Suggestions for the new javascript api
Replies: 12
Views: 2822

Re: Suggestions for the new javascript api

5. Provide a d.ts of your lib https://www.typescriptlang.org/docs/handbook/declaration-files/introduction.html With the d.ts most of IDE's autocomplete the code of your lib simplifying the development and also allows to use your lib in a TypeScript environments. We attach the one that we use as an ...
by Hamster
08 Sep 2017, 09:34
Forum: SFS2X HTML5 / JavaScript API
Topic: addEventListener scope parameter
Replies: 3
Views: 1391

Re: addEventListener scope parameter

Thanks for your answer, I haven't seen the new documentation before. The reason why I was asking this question is because I use the Javascript API with Angular2 and with Smartfox Typescript type definitions from Definitelly Typed found in their repository . Someone made a great job with this type de...
by Hamster
07 Sep 2017, 11:20
Forum: SFS2X HTML5 / JavaScript API
Topic: addEventListener scope parameter
Replies: 3
Views: 1391

addEventListener scope parameter

What exactly means the 3rd parameter in addEventListener in the documentation named scope, which is in all examples set to this ? What is it usage and why is it in the documentation as type Number ? For example: sfs.addEventListener(SFS2X.SFSEvent.CONNECTION, onConnection, this ); In the documentati...

Go to advanced search