Is there any need to use HTTPS instead of HTTP, since I use only HTTP to send the script to the client? (Note: I plan to use Local Storage instead of cookies)
No, handshakes for web sites require HTTP / HTTPS. Choosing HTTP or HTTPS from a security perspective. If you want to use it to simply send a script, then there is no harm. If you want to implement user login / authentication on your pages, you should use HTTPS.
Are there any crashes in using pure web sockets without HTTP?
Web sockets and HTTP are very different. If you use pure web sockets, you will skip HTTP. HTTP is the preferred choice for cross-platform web services. This is good for crawling / searching documents, but this is one way. The web socket provides full duplex communication channels over a single TCP connection and allows us to get rid of workarounds and hacks, such as Ajax, Reverse Ajax, Comet, etc. It is important to note that both can coexist. Thus, aim for web sockets without leaving HTTP.
If it works, why no one uses it?
We live in the HTTP era, web sockets are relatively new. In the long run, web sockets will gain in popularity and increase the share of web services. Many browsers until recently did not support web sockets properly. See here , IE 10 is the latest and only version in IE to support network sockets. nginx, a very popular server, did not support web sockets until February-March 2013. It takes time for web sockets to become popular.
source share