0.0.3 • Published 10 years ago

telehash-telesocket v0.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

telesocket

Adding telesocket support to telehash-js

Usage

var self = new require("telehash-js").switch();
require("telehash-telesocket").install(self);

//   - to listen pass path-only uri "/foo/bar", fires callback(socket) on any incoming matching uri
self.socket("/foo/bar", callback);

//   - to connect, pass in full uri "ts://hashname/path" returns socket with .onopen, .onmessage, .onerror, and .send("str")
self.socket("ts://hashname/path");
0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago