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 ?
 

Erel

Administrator
Staff member
Licensed User
1. No. Static html pages don't need handlers at all.
2. No.
 
Top