Noodles, Poodles and More!

    @sanity/reflector-client

    2.0.9 • Public • Published

    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!'})

    Install

    npm i @sanity/reflector-client

    DownloadsWeekly Downloads

    1

    Version

    2.0.9

    License

    MIT

    Unpacked Size

    8.95 kB

    Total Files

    6

    Last publish

    Collaborators

    • josh_sanity_io
    • joneidejohnsen
    • nina.andal
    • rankers
    • snorreeb
    • mattcraig
    • vincentquigley
    • stipsan
    • michael-sanity
    • rubioz
    • tonina
    • ritasdias
    • simeonsanity
    • kmelve
    • bjoerge
    • rexxars
    • skogsmaskin
    • simenss
    • robinpyon
    • mariuslundgard
    • sanity-io
    • evenw
    • radhe_sanity
    • rbotten
    • vicbergquist
    • judofyr
    • obliadp
    • dcilke
    • fredcarlsen
    • jorn_georg
    • hermanw
    • svirs
    • mikolajsanity
    • sgulseth
    • atombender