Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Documentation for Socket.io?

I'm trying to make a real time canvas kinda thing with simply Node and Socket.io, but I'm having considerable trouble.

I don't know what anything means!

Socket.emit? Socket.on? Socket.whatever?!

Essentially, I'm coding it completely blind without any idea what in the heck I'm doing. Do you guys know where some good documentation of socket.io is?

Thanks for your answer.

like image 743
Matt Avatar asked Mar 18 '12 21:03

Matt


2 Answers

Take a look at the wiki: https://github.com/learnboost/socket.io/wiki. It links to a decent number of support material for Socket.IO.

Here is a decent tutorial: http://howtonode.org/websockets-socketio

like image 89
tyronegcarter Avatar answered Oct 29 '22 10:10

tyronegcarter


You may want to look at the documentation for node itself to understand the details of the methods you listed in your question (i.e. .on and .emit). It is my understanding that socket.io is based on node. So, take a look at the Events documentation page at nodejs.org. In my opinion, though the documentation at nodejs.org and at socket.io could use a good deal of help from a professional technical writer. The problem is that the creators of it don't have time to write documentation--they are creating useful code for the community. Excellent documentation is one way that a language, framework, library, etc. can proliferate very quickly through a community. It's what helps develop a literacy within the community.

like image 28
ariestav Avatar answered Oct 29 '22 09:10

ariestav