Urbit Airlock bindings
Installation
npm install urbit-airlock --save
Usage
Connection
Opening a connection to your urbit is as follows
;;
You may then subscribe and poke over the connection.
channel.subscribe'chat-view', '/primary', ; channel.poke'gall-app', ;
Typescript
Pokes and subscription updates are strongly typed, but you need to make the interface-mark correspondence known to typescript.
You associate a mark to an interface like so
declare
This associates the 'number' mark to the typescript type number