Back to Pocketbase

Interface Listener

static/jsvm/interfaces/net.Listener.html

latest1.1 KB
Original Source

Interface Listener

A Listener is a generic network listener for stream-oriented protocols.

Multiple goroutines may invoke methods on a Listener simultaneously.

Hierarchy

  • Listener

Indexable

Index

Methods

acceptaddrclose

Methods

accept

Accept waits for and returns the next connection to the listener.

Returns net.Conn

addr

Addr returns the listener's network address.

Returns Addr

close

  • close(): void

Close closes the listener. Any blocked Accept operations will be unblocked and return errors.

Returns void

Settings

Member Visibility

  • Inherited

Theme

OSLightDark

On This Page

Generated using TypeDoc