osmo: Add >>#isConnected to see if the socket is connected right now
This commit is contained in:
parent
847c578869
commit
9279ed70c1
|
@ -57,6 +57,10 @@ supervising the RX/TX process and re-starting.'>
|
||||||
contents
|
contents
|
||||||
]
|
]
|
||||||
|
|
||||||
|
isConnected [
|
||||||
|
^started and: [socket isNil not]
|
||||||
|
]
|
||||||
|
|
||||||
connect [
|
connect [
|
||||||
<category: 'connect'>
|
<category: 'connect'>
|
||||||
socket ifNotNil: [socket close].
|
socket ifNotNil: [socket close].
|
||||||
|
|
Reference in New Issue