![]() How to get this script running on SharePoint OnlineĪs security and performance pre-caution this script does not exist on SharePoint pages. That then forces all connected clients (local workbench) to refresh. Once gulp has completed its job a gulp task to reload the page sends a request to this web socket service. This script automatically sends a hello to the service backend and waiting for new messages from the backend. The local workbench opens a connection to this HTTP Service through a script that registered on the local workbench page. When the build rig starts it registers itself as an HTTP service on the port 35729. Livereload is part of the local build rig. Similar to a chat server does, but in this case, it can also send around more advance commands and action.įor example, please re-register a new version of CSS on a page (works without browser refresh) or refresh the whole browser window after the code got re-compiled. This server that passes information around. So one or multiple web sites and browser register to a web socket backend server. With this API, you can send messages to a server and receive event-driven responses without having to poll the server for a reply. The WebSocket API is an advanced technology that makes it possible to open a two-way interactive communication session between the user’s browser and a server. There are professional tools like my favourite – Browsersync and other countless community-driven.Īll these solutions use the WebSocket API. Live-reload is one of the essential tools in the quiver of any web front end developers. Live-reload aka reload website once the code compilation finishes This solution is not only for development but also for a production compilation of a SharePoint web part or extension. Is it possible to use live-reload when I developed a web part on SharePoint Online? I had to search for an answer for that and guess what? I found a solution. While working on a small side project on a Sunday, I asked myself the question.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |