switch websocket lib for smaller size
This commit is contained in:
		
							parent
							
								
									2a110ffa1e
								
							
						
					
					
						commit
						f469dc1272
					
				
					 3 changed files with 7 additions and 23 deletions
				
			
		
							
								
								
									
										26
									
								
								package-lock.json
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										26
									
								
								package-lock.json
									
										
									
										generated
									
									
									
								
							|  | @ -4,6 +4,11 @@ | ||||||
|   "lockfileVersion": 1, |   "lockfileVersion": 1, | ||||||
|   "requires": true, |   "requires": true, | ||||||
|   "dependencies": { |   "dependencies": { | ||||||
|  |     "@gamestdio/websocket": { | ||||||
|  |       "version": "0.2.2", | ||||||
|  |       "resolved": "https://registry.npmjs.org/@gamestdio/websocket/-/websocket-0.2.2.tgz", | ||||||
|  |       "integrity": "sha512-ptWTKBq6IliC7lNhfAI/YI5WBjhPClflZV61V7In/qxGbgrWrlny6/Df4NtrUs7QUeNccv8yqQwjjw+f0veGjQ==" | ||||||
|  |     }, | ||||||
|     "@types/node": { |     "@types/node": { | ||||||
|       "version": "9.4.0", |       "version": "9.4.0", | ||||||
|       "resolved": "https://registry.npmjs.org/@types/node/-/node-9.4.0.tgz", |       "resolved": "https://registry.npmjs.org/@types/node/-/node-9.4.0.tgz", | ||||||
|  | @ -285,14 +290,6 @@ | ||||||
|         "js-tokens": "3.0.2" |         "js-tokens": "3.0.2" | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|     "backoff": { |  | ||||||
|       "version": "2.5.0", |  | ||||||
|       "resolved": "https://registry.npmjs.org/backoff/-/backoff-2.5.0.tgz", |  | ||||||
|       "integrity": "sha1-9hbtqdPktmuMp/ynn2lXIsX44m8=", |  | ||||||
|       "requires": { |  | ||||||
|         "precond": "0.2.3" |  | ||||||
|       } |  | ||||||
|     }, |  | ||||||
|     "balanced-match": { |     "balanced-match": { | ||||||
|       "version": "0.4.2", |       "version": "0.4.2", | ||||||
|       "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-0.4.2.tgz", |       "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-0.4.2.tgz", | ||||||
|  | @ -5730,11 +5727,6 @@ | ||||||
|         "uniqs": "2.0.0" |         "uniqs": "2.0.0" | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|     "precond": { |  | ||||||
|       "version": "0.2.3", |  | ||||||
|       "resolved": "https://registry.npmjs.org/precond/-/precond-0.2.3.tgz", |  | ||||||
|       "integrity": "sha1-qpWRvKokkj8eD0hJ0kD0fvwQdaw=" |  | ||||||
|     }, |  | ||||||
|     "prepend-http": { |     "prepend-http": { | ||||||
|       "version": "1.0.4", |       "version": "1.0.4", | ||||||
|       "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-1.0.4.tgz", |       "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-1.0.4.tgz", | ||||||
|  | @ -8080,14 +8072,6 @@ | ||||||
|         } |         } | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|     "websocket.js": { |  | ||||||
|       "version": "0.1.12", |  | ||||||
|       "resolved": "https://registry.npmjs.org/websocket.js/-/websocket.js-0.1.12.tgz", |  | ||||||
|       "integrity": "sha1-RsmAeHxX68jtz0SgJj5dY5NnuFs=", |  | ||||||
|       "requires": { |  | ||||||
|         "backoff": "2.5.0" |  | ||||||
|       } |  | ||||||
|     }, |  | ||||||
|     "whet.extend": { |     "whet.extend": { | ||||||
|       "version": "0.9.9", |       "version": "0.9.9", | ||||||
|       "resolved": "https://registry.npmjs.org/whet.extend/-/whet.extend-0.9.9.tgz", |       "resolved": "https://registry.npmjs.org/whet.extend/-/whet.extend-0.9.9.tgz", | ||||||
|  |  | ||||||
|  | @ -16,6 +16,7 @@ | ||||||
|     "deglobalize-css": "node ./bin/globalize-css.js --reverse" |     "deglobalize-css": "node ./bin/globalize-css.js --reverse" | ||||||
|   }, |   }, | ||||||
|   "dependencies": { |   "dependencies": { | ||||||
|  |     "@gamestdio/websocket": "^0.2.2", | ||||||
|     "cheerio": "^1.0.0-rc.2", |     "cheerio": "^1.0.0-rc.2", | ||||||
|     "chokidar": "^2.0.0", |     "chokidar": "^2.0.0", | ||||||
|     "compression": "^1.7.1", |     "compression": "^1.7.1", | ||||||
|  | @ -56,7 +57,6 @@ | ||||||
|     "url-search-params": "^0.10.0", |     "url-search-params": "^0.10.0", | ||||||
|     "webpack": "^3.10.0", |     "webpack": "^3.10.0", | ||||||
|     "webpack-bundle-analyzer": "^2.9.2", |     "webpack-bundle-analyzer": "^2.9.2", | ||||||
|     "websocket.js": "^0.1.12", |  | ||||||
|     "workerize-loader": "^1.0.1", |     "workerize-loader": "^1.0.1", | ||||||
|     "yargs": "^10.1.1" |     "yargs": "^10.1.1" | ||||||
|   }, |   }, | ||||||
|  |  | ||||||
|  | @ -1,6 +1,6 @@ | ||||||
| import { paramsString } from '../ajax' | import { paramsString } from '../ajax' | ||||||
| import noop from 'lodash/noop' | import noop from 'lodash/noop' | ||||||
| import WebSocketClient from 'websocket.js' | import WebSocketClient from '@gamestdio/websocket' | ||||||
| 
 | 
 | ||||||
| function getStreamName(timeline) { | function getStreamName(timeline) { | ||||||
|   switch (timeline) { |   switch (timeline) { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue