Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

socket.io.jsx

0.0.1 • Public • Published

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

Keywords

none

install

npm i socket.io.jsx

Downloadsweekly downloads

0

version

0.0.1

license

none

last publish

collaborators

  • avatar
Report a vulnerability