B4J Question B4J Server Basics

Bothwell

Member
Licensed User
Hi

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 ?
 
Top