B4J Question Server - Websocket events

LucaMs

Expert
Licensed User
Longtime User
Strangely, the editor's autocomplete does not provide available events for the Websocket class.

B4J_cOWIZ9KDyE.gif



I know that Connected and Disconnected events exist but without the editor's help I can find out if others exist (and what parameters for the first two, even if I know).



P.S. https://www.b4x.com/android/help/websocket.html
1718817264649.png


Wrong?
 

teddybear

Well-Known Member
Licensed User
I think WebSocket is a special class from jserver, and its event name is fixed as WebSocket. we can't add the element Event to jserver.xml like other classes for hints, otherwise on IDE it looks that there will be a prefix EventName, if you want some tips, add the element Comment for this.

videoframe_0.png
 
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
I think WebSocket is a special class from jserver, and its event name is fixed as WebSocket. we can't add the element Event to jserver.xml like other classes for hints, otherwise on IDE it looks that there will be a prefix EventName, if you want some tips, add the element Comment for this.

View attachment 154756

Yes, we actually don't create the Websocket object, we receive it from beyond ?
 
Upvote 0
Top