Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yosuke-furukawa/socket.io.jsx

socket.io binding for jsx
https://github.com/yosuke-furukawa/socket.io.jsx

Last synced: about 1 month ago
JSON representation

socket.io binding for jsx

Awesome Lists containing this project

README

        

socket.io.jsx
===========================================

Synopsis
---------------

JSX wrapper for socket.io

Code Example
---------------

```js
import "socket.io.jsx";

class _Main {
static function main(args : string[]) : void {
var io = SocketIO.listen(5000);
io.sockets.on("connection", function(socket : Socket) {
socket.emit("news", {"hello":"world"});
socket.on("my other event", function(data) {
log data;
});
});
}
}
```

Installation
---------------

```sh
$ npm install socket.io socket.io.jsx --save
```

Add socket.io.jsx's `lib` folder to search path.

Author
---------

* yosuke-furukawa

License
------------

MIT