smesh_lol_web_common_jsbridge_ws.mjs raw

   1  // Package smesh.lol/web/common/jsbridge/ws
   2  // Generated by MoxieJS — Moxie JavaScript backend
   3  
   4  import * as $rt from './$runtime/index.mjs';
   5  
   6  // Package-level variables
   7  
   8  export function init() {
   9    return;
  10  }
  11  
  12  // jsbridge: ws.Dial
  13  export function Dial(url, onMessage, onOpen, onClose, onError) {
  14    return $rt.ws.Dial(url, onMessage, onOpen, onClose, onError);
  15  }
  16  
  17  // jsbridge: ws.Send
  18  export function Send(conn, msg) {
  19    return $rt.ws.Send(conn, msg);
  20  }
  21  
  22  // jsbridge: ws.Close
  23  export function Close(conn) {
  24    $rt.ws.Close(conn);
  25  }
  26  
  27  // jsbridge: ws.ReadyState
  28  export function ReadyState(conn) {
  29    return $rt.ws.ReadyState(conn);
  30  }
  31  
  32