Updates a session object with the properties passed in the context.
Note that this function mutates the passed object and returns void.
(Had to do this instead of returning a new and updated session because closing and sending a session
makes an update to the session after it was passed to the sending logic.
Parameters
session: Session
the Session to update
context: Partial<Session> = {}
the SessionContext holding the properties that should be updated in
Updates a session object with the properties passed in the context.
Note that this function mutates the passed object and returns void. (Had to do this instead of returning a new and updated session because closing and sending a session makes an update to the session after it was passed to the sending logic.