Removed socket implementation
Added postMessage implementation