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
|
||||
]
|
||||
|
||||
isConnected [
|
||||
^started and: [socket isNil not]
|
||||
]
|
||||
|
||||
connect [
|
||||
<category: 'connect'>
|
||||
socket ifNotNil: [socket close].
|
||||
|
|
Reference in New Issue