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

eureca.io with typescript #37

Open
ghost opened this issue Dec 18, 2016 · 1 comment
Open

eureca.io with typescript #37

ghost opened this issue Dec 18, 2016 · 1 comment

Comments

@ghost
Copy link

ghost commented Dec 18, 2016

will there be supports for typescript and typing definition in the future?
and where can I find an example on how to use eureca.io with socket.io?

@ghost ghost changed the title Can you use eureca.io with socket.io? eureca.io with typescript Dec 18, 2016
@alaa-eddine
Copy link
Contributor

Hi @KhumpuW the default transport layer of eureca.io is engine.io which is the same transport layer of socket.io as you can read here https://github.com/socketio/engine.io
socket.io from version 1.x+ is just a layer on top of engine.io, and all socket.io features are already present in eureca.io.

if you still want to use the standalone socket.io, you need to install a version above 1.0 (npm install socket.io@0.9.x )
and then specify the transport explicitely in eureca server and client :

var eurecaServer = new Eureca.Server({transport:'socket.io'});

var client = new Eureca.Client({transport:'socket.io'});

if by socket.io you only mean the transport layer, then you don't need any change, use the default engine.io ;)

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

1 participant