Development code for Sockets provider

- This is an incremental devel code for Sockets provider.

probably want to return an error here, so that the app doesn't assume that another event will be generated.