Code first explanation after.

an elephant, symbolizing postgresql
an elephant, symbolizing postgresql
In your server knexfile, pass the connection string and a flag to turn off SSL validation

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.

Because node-postgres enables SSL validation by default while free heroku hosting doesn’t provide it automatically

No I’m not an expert now

A WebSocket in its native habitat

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.

WebSocket allows for bi-directional communication.

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:

  • A browser navigates to a…

Daniel Pletzke

fresh out of webdev bootcamp, passing it forward

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store