Skip to content

Transport

Interface: Transport

Generic transport interface that is responsible for sending and receiving JSTP messages over the network protocol. Implementations must guarantee that the messages will be delivered in the same order in which they were sent.

Event: 'message'

transport.send(data)

Send data over the connection.

transport.end([data])

End the connection optionally sending the last piece of data.

transport.getRawTransport()

Returns underlying transport object.