disconnect

And also disconnect from the connection as follows.

func disconnect(type: Connections)
  • type: Connections -> An Enum signifying what Connection to disconnect for