Do connect if connection is none on getPublishChannel()

Addition: change dev-1.0 branch to stable-1.0.
Update API version matrix