Fix parsing api.
Move Sockets to Shared