{"id":16416625,"url":"https://github.com/angeal185/socketio-live-reload","last_synced_at":"2026-05-06T13:32:47.670Z","repository":{"id":57365583,"uuid":"131702956","full_name":"angeal185/socketIO-live-reload","owner":"angeal185","description":"in browser live reload using socketIO","archived":false,"fork":false,"pushed_at":"2019-05-29T09:37:40.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-09T09:46:29.610Z","etag":null,"topics":["live-reload","nodejs","socket-io","socketio","watch-files"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/angeal185.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-01T10:54:49.000Z","updated_at":"2019-05-29T09:37:42.000Z","dependencies_parsed_at":"2022-08-23T20:10:13.769Z","dependency_job_id":null,"html_url":"https://github.com/angeal185/socketIO-live-reload","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angeal185%2FsocketIO-live-reload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angeal185%2FsocketIO-live-reload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angeal185%2FsocketIO-live-reload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angeal185%2FsocketIO-live-reload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/angeal185","download_url":"https://codeload.github.com/angeal185/socketIO-live-reload/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240466791,"owners_count":19805862,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["live-reload","nodejs","socket-io","socketio","watch-files"],"created_at":"2024-10-11T07:09:42.446Z","updated_at":"2026-05-06T13:32:47.629Z","avatar_url":"https://github.com/angeal185.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# socketio-live-reload\nin browser live reload using socketIO\n\n### Installation\n\nnpm:\n```sh\n$ npm install socketio-live-reload --save-dev\n```\n\n\n### API\n\n#### server-side\n\n```js\n\n// defaults ~ created in your cwd automatically on\n// first run and can be edited in ./SLR.json\n\n{\n  \"server\":{ // slr server config\n    \"port\": 8888,\n    \"cache\": \"no-cache\"\n  },\n  \"watch\": [\"./*\"], //watched files\n  \"options\": {\n    \"ignored\": [ //ignored files\n      \"./node_modules/*\"\n    ],\n    \"interval\": 100,\n    \"depth\": 99,\n    \"ignoreInitial\": false,\n    \"followSymlinks\": true,\n    \"cwd\": \"./\",\n    \"disableGlobbing\": false,\n    \"usePolling\": true,\n    \"binaryInterval\": 300,\n    \"alwaysStat\": false,\n    \"awaitWriteFinish\": {\n      \"stabilityThreshold\": 2000,\n      \"pollInterval\": 100\n    },\n    \"ignorePermissionErrors\": false,\n    \"atomic\": 100\n  },\n  \"io\": { //socket.io options\n    \"pingInterval\": 10000,\n    \"pingTimeout\": 5000,\n    \"transports\": [\n      \"polling\",\n      \"websocket\"\n    ]\n  }\n}\n\n//demo\nconst slr = require('socketio-live-reload');\n\nslr.init();\n\n```\n\n#### client-side\n\n\n```js\n//defaults\n\n{\n  port: 8888, // socket.io server port\n  URL: 'http://localhost', // socket.io server url\n  reload: true, // auto reload enabled\n  reloadTime: 1000, // time before reload\n  debug: true //debug toolbar\n}\n\n\n/**\n *  sync ~ init SLR\n *  @param {object} config ~ optional client side config\n *  @param {function} cb ~ optional callback\n **/\n\nslr.init(config, cb)\n\n```\n\n\n```html\n\n\u003c!-- DEMO --\u003e\n\n\u003c!-- load styles if using debug toolbar --\u003e\n\u003clink rel=\"stylesheet\" href=\"//localhost:8888/SLR.css\"\u003e\n\n\n\n\u003c!-- pre-packed with socket.io slim--\u003e\n\u003cscript src=\"//localhost:8888/SLR_full.js\"\u003e\u003c/script\u003e\n\n\n\u003c!-- or to load socket.io seperate --\u003e\n\u003cscript src=\"//localhost:8888/socket.io/socket.io.slim.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"//localhost:8888/SLR.js\"\u003e\u003c/script\u003e\n\n\u003c!-- init SLR with default options--\u003e\n\u003cscript\u003eslr.init()\u003c/script\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangeal185%2Fsocketio-live-reload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fangeal185%2Fsocketio-live-reload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangeal185%2Fsocketio-live-reload/lists"}