1. *** New version of B4J is available ***
    B4J v7.8
    Dismiss Notice

B4J Question B4J Server Basics

Discussion in 'B4J Questions' started by Bothwell, May 29, 2019.

  1. Bothwell

    Bothwell Member Licensed User


    I have a couple of questions

    1. does each html page need an AddWebSocket entry in the server code. eg srvr.AddWebSocket("/ws", "Login") for Login.html, If I navigate to my home.html page should it also have srvr.AddWebSocket("/ws", "Home") in the server code.

    2. also should all html pages have the <script src="/b4j_ws.js"></script> tag ?
  2. Erel

    Erel Administrator Staff Member Licensed User

    1. No. Static html pages don't need handlers at all.
    2. No.
  3. MarkusR

    MarkusR Well-Known Member Licensed User

  4. Bothwell

    Bothwell Member Licensed User

    Thanks Erel and MarkusR, I get it now.
    MarkusR likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice