Code first explanation after.
This can be found on the Heroku docs, but I still lost time getting it to work with Knex. While debugging, my errors included
heroku run knex migrate Error: self signed certificate, Knex: Timeout acquiring a connection, and
error: no pg_hba.conf entry for host “ip_address”, user “username”, database “database”, SSL off.
There are two concerns here, turning off SSL and passing the connection URI intact.
No I’m not an expert now
My research can be summarized in the below sentence:
WebSocket is a protocol and native API (not a library) that all modern browsers have implemented which allows for bi-directional communication with servers.
What does this mean? Let’s break it down.
Bi-directional communication means that the browser and the server maintains open communication. This differs from the traditional HTTP protocol, in which the transaction begins with a request from the browser and ends with a response from the server. The base use-case of WebSockets can be described as the following:
fresh out of webdev bootcamp, passing it forward