Skip to content

Commit c90adef

Browse files
committed
removes unnecessary async annotation from synchronous functions
1 parent 702e216 commit c90adef

File tree

1 file changed

+2
-2
lines changed
  • evi/evi-typescript-quickstart/src

1 file changed

+2
-2
lines changed

evi/evi-typescript-quickstart/src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const ABNORMAL_CLOSE_CODES = new Set([1006, 1011, 1012, 1013, 1014]); // WebSock
5050
let reconnectTimeoutId: ReturnType<typeof setTimeout> | null = null;
5151

5252
/** Establishes a connection to the Hume EVI WebSocket API. */
53-
async function connect(): Promise<void> {
53+
function connect() {
5454
if (isConnectingOrConnected()) {
5555
console.log("Already connecting or connected.");
5656
return;
@@ -130,7 +130,7 @@ const ABNORMAL_CLOSE_CODES = new Set([1006, 1011, 1012, 1013, 1014]); // WebSock
130130
}
131131

132132
/** Handles incoming WebSocket messages. */
133-
async function handleWebSocketMessage(message: Hume.empathicVoice.SubscribeEvent): Promise<void> {
133+
function handleWebSocketMessage(message: Hume.empathicVoice.SubscribeEvent) {
134134
switch (message.type) {
135135
case 'chat_metadata':
136136
// Store chat group ID for potential resumption

0 commit comments

Comments
 (0)