Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joernroeder/socketconnector
Injects a Socket.IO-Connection to your favorite website.
https://github.com/joernroeder/socketconnector
Last synced: about 4 hours ago
JSON representation
Injects a Socket.IO-Connection to your favorite website.
- Host: GitHub
- URL: https://github.com/joernroeder/socketconnector
- Owner: joernroeder
- Created: 2013-01-16T19:43:12.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-01-16T21:00:29.000Z (almost 12 years ago)
- Last Synced: 2023-03-23T10:40:29.282Z (over 1 year ago)
- Language: CoffeeScript
- Homepage:
- Size: 121 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
____ __ __ _____ __
/ __/___ ____ / /__ ___ / /_ / ___/___ ___ ___ ___ ____ / /_ ___ ____
_\ \ / _ \/ __// '_// -_)/ __// /__ / _ \ / _ \ / _ \/ -_)/ __// __// _ \ / __/
/___/ \___/\__//_/\_\ \__/ \__/ \___/ \___//_//_//_//_/\__/ \__/ \__/ \___//_/
Injects a Socket.IO-Connection to your favorite website.### Why
Once, someone said: _"There is an app for that!"_ No, not really!! Not an API or a Webservice, no XML, no JSON. You have to do it on your own…
User-Scripts / Browser-Extensions are perfect for this. Imagine, you could add your fancy jQuery-Plugin to any page you want, fetch your Data and send it down the short path via [Socket.IO](http://socket.io/) and [nodejs](http://nodejs.org). But how can you connect both sides?
Just give it a try!### How
```coffeescript
new SocketConnector "http://localhost", 3000, (socket) -># You're in! Add your stuff like you always do…
socket.on "foo", ->
console.log "bar"
```### Have Fun!