update the socket api
Merge pull request #40 from dart-gde/sockets

update the socket api