Api / JavaScript /

connect( [options] )

Connect with a listening Node.

Arguments

[options] Object

Returns

A new Node instance.

Examples

// browser
import dop from 'dop'
const node_server = dop.connect() // WebSockets by default

See also