Click or drag to resize

ExtIsCloseStatusCode Method

Determines whether the specified ushort is in the range of the status code for the WebSocket connection close.

Namespace:  Sfs2X.WebSocketSharp
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax
C#
public static bool IsCloseStatusCode(
	this ushort value
)

Parameters

value
Type: SystemUInt16
A UInt16 to test.

Return Value

Type: Boolean
true if value is in the range of the status code for the close; otherwise, false.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type UInt16. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks

The ranges are the following:

  • 1000-2999: These numbers are reserved for definition by the WebSocket protocol. -
  • 3000-3999: These numbers are reserved for use by libraries, frameworks, and applications. -
  • 4000-4999: These numbers are reserved for private use. -
See Also