Changes

Jump to navigation Jump to search
168 bytes added ,  17:06, 31 October 2018
If you get the <code>[basex:ws] WebSocket connection required</code> error, you may be attempting to call WebSocket functions from a non-WebSocket context. If you use a proxy server, check in the configuration if WebSockets are enabled.
=Examples= ==Basic Example==
The following chapter explains how to create a simple basic web application with WebSockets. You can find another example in the BaseX source code.
</pre>
The <code>send</code> function can be called to pass on a string to the server. There are no heart-beats in this example. This means that the connection is terminated if nothing happens for 5 minutes (e. gstandard timeout). It will also be closed if you send a chat message) to that exceeds the serverstandard text size==Chat Application==
There are no heartbeats in this example. This means that In the connection is terminated if nothing happens for 5 minutes (standard timeout). It full distributions of BaseX, you will also be closed if you send find a message little self-contained chat application that exceeds the standard text sizedemonstrates how WebSockets can be used in practice.
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu