ISocketService Class

ISocketService(url, options)

Socket的基类

Fx构造函数

# new ISocketService(url, options)

参数:
名称 类型 描述
url Object

Socket流地址的url:

options Number

其他预留参数.

作者:
  • 潘卓然ParnDeedlit 基础平台/创新中心

查看源代码 service/common/ISocketService.js, line 31

Example
固定url  ws://{ip}:{socket}/websocket/{servicename}
服务名 streamdemo
消息接收 ws://192.168.91.121:9382/websocket/streamdemo/subscribe
消息发送 ws://192.168.91.121:9382/websocket/streamdemo/broadcast

类名

ISocketService

Socket的基类

ISocketService

Socket的基类

ISocketServiceISocketService(url, options)

Socket的基类

Fx构造函数

# new ISocketService(url, options)

参数:
名称 类型 描述
url Object

Socket流地址的url:

options Number

其他预留参数.

作者:
  • 潘卓然ParnDeedlit 基础平台/创新中心

查看源代码 mapboxgl/service/socket/ISocketService.js, line 29

Example
固定url  ws://{ip}:{socket}/websocket/{servicename}
服务名 streamdemo
消息接收 ws://192.168.91.121:9382/websocket/streamdemo/subscribe
消息发送 ws://192.168.91.121:9382/websocket/streamdemo/broadcast

类名

ISocketService

Socket的基类

ISocketService

Socket的基类