0.121.0 • Published 6 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
6 years ago
0.122.0-focus.f9133963
6 years ago
0.122.0-focus.a3c7e9a7
6 years ago
0.122.0-focus.5bb0e7f8
6 years ago
0.122.0-spaces.bc70a23d
6 years ago
0.122.0-spaces.69b340a1
6 years ago
0.122.0-spaces.731315ac
6 years ago
0.122.0-weakrefs.962100b2
6 years ago
0.122.0-weakrefs.bc3b5c11
6 years ago
0.121.0
6 years ago
0.120.0
6 years ago
0.120.0-next.941943a9
6 years ago
0.120.0-next.a0d96db3
6 years ago
0.120.0-next.1b01c53f
6 years ago
0.120.0-next.347ee9ef
6 years ago
0.119.0
6 years ago
0.119.0-next.ccb2d795
6 years ago
0.119.0-next.38cbd236
6 years ago