Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/yosuke-furukawa/socket.io.jsx
- Owner: yosuke-furukawa
- Created: 2013-12-08T03:13:42.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T08:53:54.000Z (11 months ago)
- Last Synced: 2024-04-15T12:17:35.355Z (7 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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