0.0.1 • Published 10 years ago

socket.io.jsx v0.0.1

Weekly downloads
1
License
-
Repository
-
Last release
10 years ago

socket.io.jsx

Synopsis

JSX wrapper for socket.io

Code Example

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

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

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

Author

  • yosuke-furukawa

License

MIT

0.0.1

10 years ago