Click or drag to resize

WebSocketServiceManagerRemoveService Method

Removes a WebSocket service with the specified path.

Namespace:  Sfs2X.WebSocketSharp.Server
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax
C#
public bool RemoveService(
	string path
)

Parameters

path
Type: SystemString
A String that represents an absolute path to the service to remove.

Return Value

Type: Boolean
true if the service is successfully found and removed; otherwise, false.
Exceptions
ExceptionCondition
ArgumentNullExceptionpath is .
ArgumentException

path is empty.

-or-

path is not an absolute path.

-or-

path includes either or both query and fragment components.

Remarks

path is converted to a URL-decoded string and / is trimmed from the end of the converted string if any.

The service is stopped with close status 1001 (going away) if it has already started.

See Also