如何使用ASP.NET Core(Websockets)进行简单的实时聊天



订阅:http://bit.ly/ChapsasSub
在GitHub上赞助我:http://bit.ly/ChapSupport

大家好,我是Nick,今天我将向您展示如何使用ASP.NET Core和websockets创建一个简单的聊天室。

Github仓库:https://github.com/Elfocrash/PewChat

随时欢迎提出建议!

不要忘了发表评论,喜欢和订阅:)

社交媒体:
在GitHub上关注我:http://bit.ly/ChapsasGitHub
在Twitter上关注我:http://bit.ly/ChapsasTwitter
在LinkedIn上连接:http://bit.ly/ChapsasLinkedIn

19 comments
  1. Hey man!
    Tnx for the tutorial!
    Is this "websocketManager" package works on IIS ?
    I want my server app to run on iis
    But when I changed the settings to run on "IIS Express", it didnt worked…

  2. great tutorial, I just subscribed to the channel it's worth it! one question, how do I add security to this chat model? interested to know if I can deploy to azure and make it secure like a token.-Thanks!

  3. its awesome but how can i open chat between admin and user

    and make the admin the only one who can write a msg to user

    and user just can check the msg

  4. Thank you for this lesson. But a word of advice: next time please zoom in on the text editor a bit, it's very hard to see the code you're typing, especially on mobile.

  5. will be cool if u create video tutorial
    with
    login form
    register form
    admin panel – for control user
    and chat

    something like "whatsapp or viber …" on .net core 2

  6. Very nice video tutorial, man…
    Thanx!!!
    If I may suggest, a chat room like application, where there are multiple websocket connections, could be a step further… And perhaps with enabling user IDs, registrations etc…

Comments are closed.