Created common socket library for express and normal sessions