UNPKG

@iosio/websocket-client

Version:

Simple wrapper for native client-side WebSocket. Similar to socket.io. Easy to use with any backend

84 lines (83 loc) 2.08 kB
{ "name": "@iosio/websocket-client", "version": "2.1.0", "description": "Simple wrapper for native client-side WebSocket. Similar to socket.io. Easy to use with any backend", "keywords": [ "JavaScript", "websocket", "client", "client-side-websocket-wrapper", "websocket-wrapper" ], "repository": { "type": "git", "url": "git+https://github.com/iosio/websocket-client.git" }, "dependencies": { "@iosio/utils": "^1.0.44" }, "peerDependencies": { "object-assign": "4.1.1" }, "author": "iosio", "main": "lib/Socket.js", "license": "ISC", "watch": { "copy_to_example": { "patterns": [ "src" ], "ignore": "node_modules" } }, "scripts": { "watch:src": "npm-watch", "clean:build": "./node_modules/.bin/rimraf lib", "babel": "cross-env BABEL_ENV=production babel src --out-dir lib", "build": "npm run clean:build && npm run babel", "lint": "eslint src", "quicky": "node quicky.js", "watch": "npm-watch", "test": "jest", "copy_to_example": "cp -r src/ example/client/src/@iosio/websocket-client", "watch:test": "jest --watchAll", "coverage": "jest --coverage" }, "devDependencies": { "babel-cli": "^6.26.0", "babel-core": "^6.26.3", "babel-eslint": "^8.2.6", "babel-jest": "^23.2.0", "babel-plugin-transform-es2015-modules-umd": "^6.24.1", "babel-plugin-transform-object-assign": "^6.22.0", "babel-preset-react-app": "^3.1.1", "babel-runtime": "^6.26.0", "cross-env": "^5.1.6", "eslint": "^5.1.0", "express": "^4.16.3", "jest": "^23.3.0", "mock-socket": "^8.0.0", "npm-watch": "^0.3.0", "regenerator-runtime": "^0.12.0", "rimraf": "^2.6.2", "ws": "^5.2.2" }, "babel": { "presets": [ "react-app" ] }, "jest": { "coverageDirectory": "./coverage", "collectCoverageFrom": [ "<rootDir>src/**" ], "testPathIgnorePatterns": [ "/node_modules/", "/test_client/", "/example/", "/lib/", "/coverage/" ] } }