IPWorks WebSockets 2020 macOS Edition

Questions / Feedback?

Listening Property

If True, the component accepts incoming connections on LocalPort.


public var listening: Bool {
get {...}
set {...} }

Default Value



Use this property to make the class 'listen' (accept connections) on the port specified by the LocalPort property. Setting this property to False will make the class stop listening (please note that this does not close any existing connections).

If an error occurs when setting this property an error will not be thrown. This property has a related method which will throw an error:

public func setListening(listening: Bool) throws

Copyright (c) 2021 /n software inc. - All rights reserved.
IPWorks WebSockets 2020 macOS Edition - Version 20.0 [Build 7941]