Unfortunately it did not compile and as I do not have a lot of experience with this codebase, I'm unsure what to do about it. What I've posted below are the error messages, can anyone tell me how to fix them?
webserver:90:34: error: 'WStype_t' has not been declared
90 | void webSocketEvent(uint8_t num, WStype_t type, uint8_t * payload, size_t lenght)
| ^~~~~~~~
webserver:162:6: error: redefinition of 'void setup()'
162 | void setup()
| ^~~~~
C:\Users\New\AppData\Local\Temp\untitled457104433.tmp\sketch_mar01a\sketch_mar01a.ino:1:6: note: 'void setup()' previously defined here
1 | void setup() {
| ^~~~~
C:\Users\New\AppData\Local\Temp\untitled457104433.tmp\sketch_mar01a\webserver.ino: In function 'void setup()':
webserver:169:37: error: cannot convert '<unresolved overloaded function type>' to 'WebSocketsServerCore::WebSocketServerEvent' {aka 'std::function<void(unsigned char, WStype_t, unsigned char*, unsigned int)>'}
169 | webSocket.onEvent(webSocketEvent);
| ^
In file included from C:\Users\New\AppData\Local\Temp\untitled457104433.tmp\sketch_mar01a\webserver.ino:5:
C:\Users\New\Documents\Arduino\libraries\WebSockets\src/WebSocketsServer.h:50:39: note: initializing argument 1 of 'void WebSocketsServerCore::onEvent(WebSocketsServerCore::WebSocketServerEvent)'
50 | void onEvent(WebSocketServerEvent cbEvent);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~
C:\Users\New\AppData\Local\Temp\untitled457104433.tmp\sketch_mar01a\webserver.ino: At global scope:
webserver:180:6: error: redefinition of 'void loop()'
180 | void loop()
| ^~~~
C:\Users\New\AppData\Local\Temp\untitled457104433.tmp\sketch_mar01a\sketch_mar01a.ino:6:6: note: 'void loop()' previously defined here
6 | void loop() {
| ^~~~
exit status 1
'WStype_t' has not been declared
Thank you in advance!