@serptech/api
Version:
Library for work with SERP API
33 lines (22 loc) • 466 B
Markdown
# Serp WebSocket Client TS/JS library
## Installation
### NPM
```bash
npm i --save @serp/websocket
```
### Yarn
```bash
yarn add @serp/websocket
```
## Usage
```js
// ES2015 module import:
import { createSerpWsApi } from "@serp/websocket";
// CommonJS module require:
const { createSerpWsApi } = require("@serp/websocket");
const SerpWsApi = createSerpWsApi({
version: 1,
token: SERP_TOKEN,
});
SerpWsApi.connect();
```