Click or drag to resize

WebSocketSend Method (FileInfo)

Sends the specified file using the WebSocket connection.

Namespace:  Sfs2X.WebSocketSharp
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax
C#
public void Send(
	FileInfo fileInfo
)

Parameters

fileInfo
Type: System.IOFileInfo

A FileInfo that specifies the file to send.

The file is sent as the binary data.

Exceptions
ExceptionCondition
InvalidOperationException The current state of the connection is not Open.
ArgumentNullExceptionfileInfo is .
ArgumentException

The file does not exist.

-or-

The file could not be opened.

See Also