bc.mx raw

   1  package bc
   2  
   3  // BC is an opaque handle to a BroadcastChannel.
   4  type BC int
   5  
   6  // Open creates a BroadcastChannel with the given name.
   7  // onMessage is called with each received string message.
   8  func Open(name string, onMessage func(string)) BC { panic("jsbridge") }
   9  
  10  // Send posts a string message to the channel.
  11  func Send(bc BC, msg string) { panic("jsbridge") }
  12  
  13  // Close closes the channel.
  14  func Close(bc BC) { panic("jsbridge") }
  15