googollee/go-socket.io — pull request #2 by tanema (2013-12-03 13:32:12+00:00)
Title: Upgrade of this repo!

Hey there, I know this was a fork of another project so feel free to disregard this pull request but I made some extensive changes to make it easier to use and more workable. It still works like it used to (and better) with the go client but it also works well with socket.io.js browser client.

Here is a quick sum up of what I did:

- Fixed go client endpoints
- Fixed the disconnect event on server namespaces
- Fixed connected event on server endpoints
- Added a socket.io.js client for quick use to the lib folder
- Made the Go Client just take one url
- Added persistent sessionIds (with cookies for browser ident)
- Added session values
- Added broadcast functionality
- Added a simpler Emit function to namespaces
- Added events without arguments so "On" events can be registered with only the namespace argument
- Added Examples
- Added more extensive and clear examples in the readme

One main thing that still might need to be touched up is settings on the cookie that is set for the session ids, and the cookie should be a bit more secure as well. I am thinking about doing these in the future as well.

One last note is that if you merge this you will need to change the import paths in the README.md, and the examples.

Cheers and Happy coding!