Have you set an id for the table element in your webpage? Have you declared it as a jqueryelement in the class_globals sub of your websocket class? That is the key to be able to interact with the elements that you have on your webpage. After doing so, you may also want to add the events for that jquery element such as click if you need to.
Let's say you have in your html file a div with the id "maindiv"
<div id="maindiv">
</div>
Now, in your Websocket Class you have to declare it in the Sub Class_Globals
Sub Class_Globals
Private ws As WebSocket
Private maindiv As JQueryElement '<--- This will allow you to interact with your element.
End Sub
After that you can access all the jQueryElement methods to interact with your element. Let's say I want to add a text inside that div:
maindiv.SetText("This is a sample text")
In some cases you may need to flush your Websocket object... it depends if the action is a response to an event started from the client (the browser in this case) or if it is the result from some other code in your B4X project... like updating some data in your webpage as it becomes available. In this last case you would need to flush the Websocket.
ws.Flush '<--- This was also declared in the Sub Class_Globals and it was asigned to the websocket of the client when it connected on the WebSocket_Connected event.
Now, let's suppose you want to READ that information. You would need to get the value from the future object that would be returned when you query the element. For instance, let's log it.
Dim future_Text As Future = maindiv.GetText()
Log(future_Text.Value)
In a nutshell is all about using jQueryElement objects and Future objects. The rest is good old B4X. Check the sample project that comes with the template, it really helps. I hope this helps you get started. Good Luck!