Add onConnection as optional function to websocket-options to be called on socket-io connects