Socket class

Implemented types
Annotations
  • @JS()
  • @anonymous

Constructors

Socket()

Properties

bufferSize → int
read-only
bytesRead → int
read-only
bytesWritten → int
read-only
connecting → bool
read-only
destroyed → bool
read-only
localAddress → String
read-only
localFamily → String
read-only
localPort → int
read-only
remoteAddress → String
read-only
remoteFamily → String
read-only
remotePort → int
read-only
hashCode → int
The hash code for this object.
read-only, inherited
readableHighWaterMark → int
read-only, inherited
readableLength → int
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited
writableHighWaterMark → int
read-only, inherited
writableLength → int
read-only, inherited

Methods

address() NetAddress
connect(dynamic arg1, [ dynamic arg2 dynamic arg3 ]) Socket
See official documentation on possible signatures: [...]
destroy([dynamic exception ]) Socket
override
end([dynamic data, dynamic encoding, void unused() ]) Socket
override
pause() Socket
override
ref() Socket
resume() Socket
override
setEncoding([String encoding ]) Socket
override
setKeepAlive([bool enable, dynamic initialDelay ]) Socket
setNoDelay([bool noDelay ]) Socket
setTimeout(dynamic timeout, [ void callback() ]) Socket
unref() Socket
write(dynamic chunk, [ dynamic encodingOrCallback, void callback() ]) → bool
override
addListener(dynamic eventName, Function listener) → void
inherited
cork() → void
inherited
emit(dynamic eventName, [ dynamic arg1 dynamic arg2 dynamic arg3 dynamic arg4 dynamic arg5 dynamic arg6 ]) → void
inherited
eventNames() → List
inherited
getMaxListeners() → int
inherited
isPaused() → bool
inherited
listenerCount(dynamic eventName) → int
inherited
listeners(dynamic eventName) → List<Function>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
on(dynamic eventName, Function listener) EventEmitter
inherited
once(dynamic eventName, Function listener) EventEmitter
inherited
pipe(Writable destination, [ dynamic options ]) Writable
inherited
prependListener(dynamic eventName, Function listener) EventEmitter
inherited
prependOnceListener(dynamic eventName, Function listener) EventEmitter
inherited
push(dynamic chunk, [ dynamic encoding ]) → bool
inherited
rawListeners(dynamic eventName) → List<Function>
inherited
read([int size ]) → dynamic
inherited
removeAllListeners(dynamic eventName) EventEmitter
inherited
removeListener(dynamic eventName, Function listener) EventEmitter
inherited
setDefaultEncoding(String encoding) → void
inherited
setMaxListeners(int value) → void
inherited
toString() → String
Returns a string representation of this object.
inherited
uncork() → void
inherited
unpipe([Writable destination ]) → void
inherited
unshift(dynamic chunk) → void
inherited
wrap(dynamic stream) → void
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited