Skip to content

Conversation

dtkdtk
Copy link

@dtkdtk dtkdtk commented Aug 22, 2024

  1. Добавил импорт модуля http (без него - ошибка)
    image
  2. Добавил server.listen(80) (без него - скрипт сразу завершался)
  3. WebSocket.prototype не имеет поля Server, так что new (new WebSocket).Server(...) - некорректно. Внёс правку: new WebSocket.Server(...)

VSC дело говорит (до/после):
image
image

@javascript-translate-bot javascript-translate-bot added the review needed Review needed, please approve or request changes label Aug 22, 2024
@javascript-translate-bot javascript-translate-bot requested a review from a team August 22, 2024 16:12
@CLAassistant
Copy link

CLAassistant commented Aug 22, 2024

CLA assistant check
All committers have signed the CLA.

@dtkdtk dtkdtk changed the title Поправил Backend-пример WebSocket: Поправил Backend-пример Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review needed Review needed, please approve or request changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants