Added web socket c code