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

Runtime does not offer TCPSockets! #17

Closed
Akash-dvd opened this issue Feb 17, 2015 · 1 comment
Closed

Runtime does not offer TCPSockets! #17

Akash-dvd opened this issue Feb 17, 2015 · 1 comment

Comments

@Akash-dvd
Copy link

Hi ,
I am trying to use this library on browser.
On node the imap client is working fine.
But no luck on browser.
I am getting Error: Runtime does not offer TCPSockets!
on chrome for tcp-socket package.
I have used the first usage code of tcp-socket on your npm page.
Help me out .

Link
`https://gist.github.com/Akash-dvd/84beb892938e1f2c8eee

@felixhammerl
Copy link
Contributor

yes, that's the intended behavior. node has native tcp sockets and native tls, so that's no problem. on a regular browser, you don't have tcp sockets. they are only available in some priviledged environments (e.g. chrome apps, firefox packaged apps, windows apps 8.1+). if native tcp sockets are not available, we fall back to socket.io tunnelling. seems like you have socket.io support in your app via the io global.

you could make your webserver the socket.io proxy for your application, or ... use platforms that support the native sockets

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