Skip to content

Function: useConnection ​

â–¸ useConnection(): Object

Composable for accessing the currently ongoing connection.

Returns ​

Object

current connection: startHandle, endHandle, status, position

NameType
endHandleRef<null | ConnectingHandle>
positionRef<XYPosition>
startHandleRef<null | ConnectingHandle>
statusRef<null | ConnectionStatus>

Released under the MIT License.