Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to use in nativescript? #99

Open
willin opened this issue Sep 19, 2016 · 1 comment
Open

how to use in nativescript? #99

willin opened this issue Sep 19, 2016 · 1 comment

Comments

@willin
Copy link

willin commented Sep 19, 2016

var ws = null

if (typeof WebSocket !== 'undefined') {
  ws = WebSocket
} else if (typeof MozWebSocket !== 'undefined') {
  ws = MozWebSocket
} else {
  ws = window.WebSocket || window.MozWebSocket
}

module.exports = ws

nativescript is some way like react native

and there is no window in it.

@mcollina
Copy link
Collaborator

We are happy to accept a pull request that enable support for nativescript.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants