triniwiz / nativescript-socketio

Socket.IO for nativescript
Apache License 2.0
71 stars 31 forks source link

Demo failed (Android) #5

Closed tamnvt closed 8 years ago

tamnvt commented 8 years ago

Hi triniwiz, I can not run the demo with cloned source code. Steps:

I also encounter this issue with my project using nativescript-socketio npm. Please help me to resolve it. Many thanks

tamnvt commented 8 years ago

I worked around by this: var SocketIO = require('nativescript-socketio').SocketIO; it works ! But in my class, I can define property type by: private socketInstance: SocketIO Error from VSCode notification: [ts] Cannot find name 'SocketIO'

donburgess commented 8 years ago

npm run demo.android from root works for me

triniwiz commented 8 years ago

@tamnvt upgrade your plugin to version 2.0.0

jwhits commented 8 years ago

I am also having this issue. I have updated plugin version to 2.0.0 the app starts and gets to the login screen however when I press join nothing happens. I can't see any other errors apart from the one mentioned above.

The server logs Joined Namespace: / User Connected Joined Namespace: /chat

triniwiz commented 8 years ago

@jwhits i need to update the demo and the docs :sweat_smile:

jwhits commented 8 years ago

Well that would explain it @triniwiz :)

triniwiz commented 8 years ago

Closing this since https://github.com/triniwiz/nativescript-socketio/commit/6b1e186a9a44ac5b806bf1f182fe739df50137c4 included a fix for typings so no more Cannot find module 'nativescript-socketio' also @jwhits the demo has been updated