Documentation

sub_pub_js.php

Table of Contents

Functions

get_ws_js()  : mixed
HTML端收消息 wss://yourdomain/wss ws://ip:port
create_node_ws_server()  : mixed
生成node js ws服务 需要把返回的内容写入server.js中 依赖 ioredis

Functions

get_ws_js()

HTML端收消息 wss://yourdomain/wss ws://ip:port

get_ws_js(mixed $func[, mixed $ws = 'ws://127.0.0.1:3006' ]) : mixed
Parameters
$func : mixed
$ws : mixed = 'ws://127.0.0.1:3006'

create_node_ws_server()

生成node js ws服务 需要把返回的内容写入server.js中 依赖 ioredis

create_node_ws_server([mixed $ws_port = 3006 ][, mixed $topic = ['demo'] ][, mixed $redis_host = '127.0.0.1' ][, mixed $port = '6379' ][, mixed $auth = '' ]) : mixed
Parameters
$ws_port : mixed = 3006
$topic : mixed = ['demo']
$redis_host : mixed = '127.0.0.1'
$port : mixed = '6379'
$auth : mixed = ''

        
On this page

Search results