Skip to content

Typo in solidWs usage in documentation #26

Open

Description

@melvincarvalho

Description:
In the usage examples within the README, the solidWs function is imported as SolidWs but used as solidWs. For consistency and convention in JavaScript (camelCase for functions), the import should be changed to solidWs.

Proposed fix:
In the "Short way" and "Long way" examples, update the import statement to:

var solidWs = require('solid-ws')

This will maintain consistency with the function call solidWs(server).

Activity

  1. added a commit that references this issue on Oct 8, 2024
    c174ad6
  2. melvincarvalho commented on Mar 18, 2025

    @melvincarvalho
    ContributorAuthor

    The README still has SolidWs instead of solidWs, which is inconsistent with the function call. This should be fixed for clarity and convention. Any updates on this?

    var SolidWs = require('solid-ws')
    var ldnode = require('ldnode')
    
    var server = ldnode.createServer()
    solidWs(server)
    
    server.listen(port, function () {
      console.log('Solid server started')
    })

    @bourgeoa ?

  3. TallTed commented on Mar 18, 2025

    @TallTed
    Member

    @melvincarvalho — Can you submit a PR that would fix this? That is probably the fastest way to move it forward...

  4. TallTed commented on Mar 18, 2025

    @TallTed
    Member

    @melvincarvalho — Sorry, GitHub UI changes led me to overlook that you have submitted such a PR as #27: Fix #26: Correct solidWs naming and syntax error in README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions