Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react receiving socket muitple times

socket.off('MY_EVENT').on('MY_EVENT', () => doThisOnlyOnce());
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #react #receiving #socket #muitple #times
ADD COMMENT
Topic
Name
9+9 =