UNPKG
@caict/bop-typescript-sdk
Version:
latest (1.0.3)
1.0.3
1.0.2
1.0.1
1.0.0
Xinghuo bop sdk
github.com/caict-4iot-dev/bop-typescript-sdk
caict-4iot-dev/bop-typescript-sdk
@caict/bop-typescript-sdk
/
src
/
bop-sdk
/
interface
/
provider-ws.ts
11 lines
(8 loc)
•
297 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
{
WsConfig
,
BopWsInterface
}
from
"../../bop/bop-ws"
;
//未拓展新功能,直接接入Bop平台的ws
export
class
WsProviderByBop
{
public
bop
:
BopWsInterface
;
constructor
(
config
:
WsConfig
) {
this
.
bop
=
new
BopWsInterface
(config.
url
, config.
heartBeatInterval
); } }