You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

socket.md 2.0KB

Interface: Socket

Hierarchy

  • Socket

Implemented by

Index

Properties

Methods

Properties

bind

bind: function

Type declaration:

▸ (name: string, listener: T.PioBindListener): void

Parameters:

Name Type
name string
listener T.PioBindListener

call

call: function

Type declaration:

▸ (rpcname: string, …args: any[]): Promise‹any›

Parameters:

Name Type
rpcname string
...args any[]

emit

emit: function

Type declaration:

▸ (eventName: string, …args: any[]): void

Parameters:

Name Type
eventName string
...args any[]

fire

fire: function

Type declaration:

▸ (rpcname: string, …args: any[]): Promise‹any›

Parameters:

Name Type
rpcname string
...args any[]

hook

hook: function

Type declaration:

▸ (rpcname: string, handler: T.PioHookListener): void

Parameters:

Name Type
rpcname string
handler T.PioHookListener

Optional id

id? : undefined | string


on

on: function

Type declaration:

▸ (type: string, f: T.AnyFunction): any

Parameters:

Name Type
type string
f T.AnyFunction

unhook

unhook: function

Type declaration:

▸ (rpcname: string, listener?: T.AnyFunction): void

Parameters:

Name Type
rpcname string
listener? T.AnyFunction

Methods

close

close(): void

Returns: void