0.121.0 • Published 8 years ago
reflector-client v0.121.0
Low level client for the Reflector client to client messaging system
Implements the messaging protocol that supports the Sanity real time presence exprience.
Initializing
import Reflector from '@sanity/reflector-client'
import myConfiguredSanityClient from './myConfiguredSanityClient'
channel = new Reflector(mySanityClient).connect('channelName')
Listening
channel.listen().subscribe(msg => {
console.log(msg) // => {i: <sanity-identity>, m: <message>}
})
Sending
channel.send({'hello': 'sanity!'})
0.122.0-focus.5d5f8af0
8 years ago
0.122.0-focus.f9133963
8 years ago
0.122.0-focus.a3c7e9a7
8 years ago
0.122.0-focus.5bb0e7f8
8 years ago
0.122.0-spaces.bc70a23d
8 years ago
0.122.0-spaces.69b340a1
8 years ago
0.122.0-spaces.731315ac
8 years ago
0.122.0-weakrefs.962100b2
8 years ago
0.122.0-weakrefs.bc3b5c11
8 years ago
0.121.0
8 years ago
0.120.0
8 years ago
0.120.0-next.941943a9
8 years ago
0.120.0-next.a0d96db3
8 years ago
0.120.0-next.1b01c53f
8 years ago
0.120.0-next.347ee9ef
8 years ago
0.119.0
8 years ago
0.119.0-next.ccb2d795
8 years ago
0.119.0-next.38cbd236
8 years ago