webSocket(path, is_prefix=False, ports=)
WebSocket support is Python3 only.
When you decorate a class with this decorator, it registers the class with the webserver on the given path.
A string starting with
"/", but which may or may not end with a slash.
When registering paths, trailing slashes do not affect the behavior of the
path does not have a slash it is implicitly added, and when
the server matches paths to request handlers, any paths sent in server
requests have a path added to them if it is missing.
False, the class will only be created when the requested path matches
True, however, the class will be created when the requested
path starts with
path, followed by a slash, followed by anything else.
Any ports the websocket class can be created on. If no ports are specified
the class is bound to the main port of the webserver. The port name can
be any name that is not empty and is not
main (reserved for the main port).