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

Make API more similar to Node.js #2

Open
aslakhellesoy opened this issue Aug 19, 2011 · 1 comment
Open

Make API more similar to Node.js #2

aslakhellesoy opened this issue Aug 19, 2011 · 1 comment

Comments

@aslakhellesoy
Copy link

Instead of:

server.addEventListener('ondata', function(event) {})

It would be nice to do:

server.addEventListener('data', function(event) {})

See Node's Stream API

It would also be nice to use on as an alias of addEventListener

@aslakhellesoy
Copy link
Author

Maybe this is already implemented. If it is, there is an inconsistency between http://sockit.github.com/tutorial.html ('ondata') and http://sockit.github.com/api_documentation.html ('data')

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