├── .github └── workflows │ └── pr-test.yml ├── .gitignore ├── LICENSE ├── README.md ├── examples ├── basic-usage-1.ts └── basic-usage-2.ts ├── package.json ├── src ├── WSSubscriptionManager.ts ├── index.ts ├── logger.ts ├── modules │ ├── GroupRegistry.ts │ ├── GroupSocket.ts │ └── OrderBookCache.ts └── types │ ├── PolymarketWebSocket.ts │ └── WebSocketSubscriptions.ts ├── tests ├── live │ └── LiveData.test.ts └── mock │ ├── GroupRegistry.test.ts │ ├── OrderBookCache.test.ts │ └── WSSubscriptionManager.test.ts ├── tsconfig.json └── vitest.config.ts /.github/workflows/pr-test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevuamarkets/poly-websockets/HEAD/.github/workflows/pr-test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevuamarkets/poly-websockets/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevuamarkets/poly-websockets/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevuamarkets/poly-websockets/HEAD/README.md -------------------------------------------------------------------------------- /examples/basic-usage-1.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevuamarkets/poly-websockets/HEAD/examples/basic-usage-1.ts -------------------------------------------------------------------------------- /examples/basic-usage-2.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevuamarkets/poly-websockets/HEAD/examples/basic-usage-2.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevuamarkets/poly-websockets/HEAD/package.json -------------------------------------------------------------------------------- /src/WSSubscriptionManager.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevuamarkets/poly-websockets/HEAD/src/WSSubscriptionManager.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevuamarkets/poly-websockets/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/logger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevuamarkets/poly-websockets/HEAD/src/logger.ts -------------------------------------------------------------------------------- /src/modules/GroupRegistry.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevuamarkets/poly-websockets/HEAD/src/modules/GroupRegistry.ts -------------------------------------------------------------------------------- /src/modules/GroupSocket.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevuamarkets/poly-websockets/HEAD/src/modules/GroupSocket.ts -------------------------------------------------------------------------------- /src/modules/OrderBookCache.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevuamarkets/poly-websockets/HEAD/src/modules/OrderBookCache.ts -------------------------------------------------------------------------------- /src/types/PolymarketWebSocket.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevuamarkets/poly-websockets/HEAD/src/types/PolymarketWebSocket.ts -------------------------------------------------------------------------------- /src/types/WebSocketSubscriptions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevuamarkets/poly-websockets/HEAD/src/types/WebSocketSubscriptions.ts -------------------------------------------------------------------------------- /tests/live/LiveData.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevuamarkets/poly-websockets/HEAD/tests/live/LiveData.test.ts -------------------------------------------------------------------------------- /tests/mock/GroupRegistry.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevuamarkets/poly-websockets/HEAD/tests/mock/GroupRegistry.test.ts -------------------------------------------------------------------------------- /tests/mock/OrderBookCache.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevuamarkets/poly-websockets/HEAD/tests/mock/OrderBookCache.test.ts -------------------------------------------------------------------------------- /tests/mock/WSSubscriptionManager.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevuamarkets/poly-websockets/HEAD/tests/mock/WSSubscriptionManager.test.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevuamarkets/poly-websockets/HEAD/tsconfig.json -------------------------------------------------------------------------------- /vitest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nevuamarkets/poly-websockets/HEAD/vitest.config.ts --------------------------------------------------------------------------------