Socket.getInstance constructor
Socket.getInstance()
Returns the instance of the socket connection, throws an error if the connection is not initialized
Implementation
factory Socket.getInstance() {
return Socket._instance;
}