1
0
Fork 0

osmo: Add >>#isConnected to see if the socket is connected right now

This commit is contained in:
Holger Hans Peter Freyther 2014-07-21 12:48:05 +02:00
parent 847c578869
commit 9279ed70c1
1 changed files with 4 additions and 0 deletions

View File

@ -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].