Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebSocket: Поправил Backend-пример #1990

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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