TCP

@native @JSGlobal("chrome.sockets.tcp") @JSType
object TCP extends Object
class Object
trait Any
class Object
trait Matchable
class Any

Value members

Concrete methods

def close(socketId: SocketId, callback: Function0[_]): Unit
def connect(socketId: SocketId, peerAddress: String, peerPort: Int, callback: Function1[Int, _]): Unit
def create(properties: UndefOr[SocketProperties], callback: Function1[CreateInfo, _]): Unit
def disconnect(socketId: SocketId, callback: UndefOr[Function0[_]]): Unit
def getInfo(socketId: SocketId, callback: Function1[SocketInfo, _]): Unit
def getSockets(callback: Function1[Array[SocketInfo], _]): Unit
def secure(socketId: SocketId, options: UndefOr[SecureOptions], callback: Function0[_]): Unit
def send(socketId: SocketId, data: ArrayBuffer, callback: Function1[SendInfo, _]): Unit
def setKeepAlive(socketId: SocketId, enable: Boolean, delay: UndefOr[Int], callback: Function1[Int, _]): Unit
def setNoDelay(socketId: SocketId, noDelay: Boolean, callback: Function1[Int, _]): Unit
def setPaused(socketId: SocketId, paused: Boolean, callback: UndefOr[Function0[_]]): Unit
def update(socketId: SocketId, properties: SocketProperties, callback: UndefOr[Function0[_]]): Unit

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from
Object
def isPrototypeOf(v: Object): Boolean
Inherited from
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from
Object
def toLocaleString(): String
Inherited from
Object
def valueOf(): Any
Inherited from
Object

Concrete fields

val onReceive: Event[Function1[ReceiveEvent, _]]