Add main entrypoint.
making socket on creation.