You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- ProgressBarPercentLoadedStyle: Styles for percentage and text size for progress bar
54
55
- ProgressBarValueStyle: Styles for uploading animation for progress bar
56
+
- AddLogForWebSockets: Enabling this option will log connections, disconnections, and data sent between the server and client in WebSocket protocol.
55
57
56
58
## Action Controls
57
59
@@ -440,6 +442,22 @@ tc<form>|<p>=yellow
440
442
441
443
> Note: Multiple-Responses are mostly used for offline cases and it is recommended to enable HTML headers for long-term client-side caching for multiple responses.
442
444
445
+
## Uisng WebSocket
446
+
447
+
WebForms Core technology also supports the WebSocket protocol.
448
+
449
+
Sending data in WebSocket mode is also possible with form submission. In order to send data under the WebSocket protocol, you must either enable the use of WebForms class methods on the server. Of course, you can also send under the WebSocket protocol by adding the `usewebsocket` attribute to the form tag.
450
+
451
+
Example:
452
+
```html
453
+
<formaction="/mypage"method="post"usewebsocket>
454
+
Text
455
+
<br>
456
+
<textareaname="Textarea1"></textarea><br><br>
457
+
<inputtype="submit"name="Button1"value="Send">
458
+
</form>
459
+
```
460
+
443
461
## PostBack and GetBack and TagBack method
444
462
445
463
`PostBack` and `GetBack` are two methods in WebFormsJS.
0 commit comments