Coder Social home page Coder Social logo

tweeter-clone's Introduction

COP5615 – Project 4 part 2

Twitter Clone with websockets Submitted by – Yagya Malik, Abhiti Sachdeva

Goal –

Implement WebSocket interface to project 4 part 1 Requirements Fulfilled – • Registration • Sending tweets • Mentioning Users and Hashtags in tweets • Retweets • Querying tweets by mentions or hashtags • All of the above happens without querying live. • Bonus completed, Key agreement happens through ElipticCurve Diffie Hellman Key exchange protocol, a challenge is formed by the server each time a user attempts to connect to the server. If the challenge is not completed within 1 second the protocol must be tried again. • HMAC signs every message sent over serialized JSON content Libraries used – • FSharp.JSON • WebSocketSharp • FSharp.Data • Akka

How to run the code –

• Engine – run dotnet run debug in eng_twitter directory • User – run dotnet run in sim_twitter directory

Brief description of working of code –

• Web sockets are designed to use restful API, there are different end points for every request (Each type of request is handled by a different actor on the server side) • We user websocketsharp to implement web sockets, and each request goes through the appropriate socket like so – If a user sends a message to register itself, a message would be sent to the server to the appropriate socket number and node id that would serve the request

• Once the server has a request, it checks if the user is authenticated with the sever, i.e the server checks if the user is actually registered with our website, and also sends it a random 256 bit challenge and wait for 1 second. The client has to add it’s unix time to the challenge and HMAC (SHA256) it back to the server after encrypting it with it’s private key. If the server is able to verify it with user’s public key then user is allowed to query the server. • Once the connection has been established, the server will send a JSON reply. Video and Output - https://youtu.be/m_8U4ERx7z4

tweeter-clone's People

Contributors

yagyamalik avatar

Watchers

 avatar

Forkers

abhiti01

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.